diff --git a/source/server/migrations/005-collections.sql b/source/server/migrations/005-collections.sql new file mode 100644 index 00000000..25d37ddf --- /dev/null +++ b/source/server/migrations/005-collections.sql @@ -0,0 +1,16 @@ +-------------------------------------------------------------------------------- +-- Up +-------------------------------------------------------------------------------- + +CREATE TABLE collections( + name TEXT NOT NULL, + fk_scene_id INTEGER NOT NULL, + FOREIGN KEY(fk_scene_id) REFERENCES scenes(scene_id), + UNIQUE(name, fk_scene_id) +); + +-------------------------------------------------------------------------------- +-- Down +-------------------------------------------------------------------------------- + +DROP TABLE collections; \ No newline at end of file