1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-25 16:41:08 +00:00
ibis/migrations/2024-11-11-142910_conflict-constraint/down.sql

2 lines
211 B
MySQL
Raw Normal View History

2024-11-11 15:02:48 +00:00
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;