Setup database migration

This commit is contained in:
viktorstrate
2020-01-31 15:22:58 +01:00
parent 3a730fea36
commit 8a69b1a82c
8 changed files with 73 additions and 9 deletions

View File

@@ -0,0 +1 @@
DROP TABLE IF EXISTS users;

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS users (
user_id int NOT NULL AUTO_INCREMENT,
username varchar(255) NOT NULL,
password varchar(255) NOT NULL,
root_path varchar(512) NOT NULL,
admin boolean,
PRIMARY KEY (user_id)
);