taskcafe/api/migrations/0017_add-profile-bg-delete-cascade.up.sql

8 lines
195 B
MySQL
Raw Normal View History

2020-05-27 02:53:31 +02:00
ALTER TABLE task_assigned
DROP CONSTRAINT task_assigned_task_id_fkey,
ADD CONSTRAINT task_assigned_task_id_fkey
FOREIGN KEY (task_id)
REFERENCES task(task_id)
ON DELETE CASCADE;