2 lines
197 B
MySQL
2 lines
197 B
MySQL
|
ALTER TABLE vn.ticketSms DROP FOREIGN KEY ticketSms_FK_1;
|
||
|
ALTER TABLE vn.ticketSms ADD CONSTRAINT ticketSms_FK_1 FOREIGN KEY (ticketFk) REFERENCES vn.ticket(id) ON DELETE CASCADE ON UPDATE CASCADE;
|