4 lines
229 B
MySQL
4 lines
229 B
MySQL
|
-- Place your SQL code here
|
||
|
ALTER TABLE vn.parking DROP FOREIGN KEY IF EXISTS parking_fk1;
|
||
|
ALTER TABLE vn.parking ADD CONSTRAINT parking_fk1 FOREIGN KEY (sectorFk) REFERENCES vn.sector(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|