Fix cannot delete people assigned to task

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-14 11:23:54 +01:00
parent 7153831fb2
commit 8a2478fe82

View File

@@ -0,0 +1,3 @@
ALTER TABLE tasks DROP CONSTRAINT tasks_assigned_to_fkey;
ALTER TABLE tasks ADD CONSTRAINT tasks_assigned_to_fkey
FOREIGN KEY (assigned_to) REFERENCES peoples(id) ON DELETE SET NULL;