mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 22:29:07 +00:00
Setup database migration
This commit is contained in:
1
api/database/migrations/0001_init.down.sql
Normal file
1
api/database/migrations/0001_init.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS users;
|
||||
9
api/database/migrations/0001_init.up.sql
Normal file
9
api/database/migrations/0001_init.up.sql
Normal 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)
|
||||
);
|
||||
Reference in New Issue
Block a user