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

2 lines
No EOL
211 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 local_user(id) ON UPDATE CASCADE ON DELETE CASCADE;