Running migrations.
This commit is contained in:
13
migrations/00001_create_watched_table.sql
Normal file
13
migrations/00001_create_watched_table.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE profile (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL,
|
||||
UNIQUE(name)
|
||||
);
|
||||
|
||||
CREATE TABLE watched (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
profile INTEGER NOT NULL,
|
||||
path TEXT NOT NULL,
|
||||
recorded_at DATE NOT NULL,
|
||||
FOREIGN KEY(profile) REFERENCES profile(id)
|
||||
);
|
||||
Reference in New Issue
Block a user