9 lines
241 B
MySQL
9 lines
241 B
MySQL
|
USE vn;
|
||
|
|
||
|
ALTER TABLE vn.ticketRefund
|
||
|
DROP FOREIGN KEY ticketRefund_FK;
|
||
|
|
||
|
ALTER TABLE vn.ticketRefund
|
||
|
ADD CONSTRAINT ticketRefund_FK
|
||
|
FOREIGN KEY (refundTicketFk)
|
||
|
REFERENCES vn.ticket(id) ON DELETE CASCADE ON UPDATE CASCADE;
|