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;