Add Migrations
This commit is contained in:
parent
952bb316c2
commit
e426c580f5
8 changed files with 34 additions and 0 deletions
8
migrations/000002_create_files_table.up.sql
Normal file
8
migrations/000002_create_files_table.up.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
CREATE TABLE IF NOT EXISTS files(
|
||||
id serial PRIMARY KEY,
|
||||
library_id integer REFERENCES libraries(id) NOT NULL,
|
||||
size integer NOT NULL,
|
||||
missing boolean NOT NULL,
|
||||
path VARCHAR (500) NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue