1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-12-26 03:01:22 +00:00
ibis/migrations/2024-11-11-142910_conflict-constraint/up.sql

2 lines
207 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 person(id) ON UPDATE CASCADE ON DELETE CASCADE;