Mistake in migration scripts

This commit is contained in:
Imbus 2024-02-26 00:13:39 +01:00
parent 3ba446be5b
commit 033402ffaf

View file

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS user_roles ( CREATE TABLE IF NOT EXISTS report_collection (
user_id INTEGER NOT NULL, id INTEGER PRIMARY KEY,
project_id INTEGER NOT NULL, project_id INTEGER NOT NULL,
role STRING NOT NULL, date DATE NOT NULL,
FOREIGN KEY (user_id) REFERENCES users (id) signed_by INTEGER, -- NULL if not signed
FOREIGN KEY (project_id) REFERENCES projects (id) FOREIGN KEY (signed_by) REFERENCES users (id)
); );