diff options
author | adam <adam@> | 2021-02-11 19:34:16 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-11 19:34:16 +0200 |
commit | d35678c131d4547cea8b3d9fcc1978dec0d2d903 (patch) | |
tree | 93869e8419deb92a946c3ed817341ca4ae9cc04b | |
parent | d14f3109973c7d95a15174db1a1346887765988d (diff) | |
download | fileup-d35678c131d4547cea8b3d9fcc1978dec0d2d903.tar.gz |
setting up
-rw-r--r-- | php/configuration.php | 8 | ||||
-rw-r--r-- | sql/fileshare.sql | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/php/configuration.php b/php/configuration.php index 6b87508..90face8 100644 --- a/php/configuration.php +++ b/php/configuration.php @@ -3,10 +3,10 @@ $domain_name="localhost"; -$database_name="adam"; -$database_username="adam"; -$database_password="asdfd"; -$database_location="127.0.0.1"; +$database_name="fileup_testing"; +$database_username="outsider"; +$database_password="parola123"; +$database_location="localhost"; diff --git a/sql/fileshare.sql b/sql/fileshare.sql index a079a7f..dfb9010 100644 --- a/sql/fileshare.sql +++ b/sql/fileshare.sql @@ -23,6 +23,7 @@ create table files ( create table access ( file_id int not null, user_id int not null, + can_view boolean not null default true, can_remove boolean not null default false, check (can_view=true or can_remove=true) , |