feat: update a migration to make the task-project foreign key set null on delete
This commit is contained in:
parent
15e925118e
commit
0cddc3c205
@ -6,6 +6,6 @@ CREATE TABLE "tasks"(
|
|||||||
"deadline" DATE,
|
"deadline" DATE,
|
||||||
"category" JSONB NOT NULL,
|
"category" JSONB NOT NULL,
|
||||||
"project_id" INT4,
|
"project_id" INT4,
|
||||||
FOREIGN KEY ("project_id") REFERENCES "projects"("id")
|
FOREIGN KEY ("project_id") REFERENCES "projects"("id") ON DELETE SET NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user