1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-22 23:41:09 +00:00
ibis/migrations/2024-11-11-142910_conflict-constraint/up.sql
2024-11-11 16:02:48 +01:00

2 lines
No EOL
207 B
SQL

ALTER TABLE conflict DROP CONSTRAINT conflict_creator_id_fkey;
ALTER TABLE conflict ADD CONSTRAINT conflict_creator_id_fkey FOREIGN KEY (creator_id) REFERENCES person(id) ON UPDATE CASCADE ON DELETE CASCADE;