3 lines
193 B
MySQL
3 lines
193 B
MySQL
|
ALTER TABLE vn.ticket DROP FOREIGN KEY tickets_zone_fk;
|
||
|
ALTER TABLE vn.ticket ADD CONSTRAINT tickets_zone_fk FOREIGN KEY (zoneFk) REFERENCES vn.`zone`(id) ON DELETE SET NULL ON UPDATE CASCADE;
|