4 lines
207 B
MySQL
4 lines
207 B
MySQL
|
ALTER TABLE vn.vehicle DROP FOREIGN KEY provinceFk;
|
||
|
ALTER TABLE vn.vehicle
|
||
|
ADD CONSTRAINT vehicle_warehouse_FK FOREIGN KEY (warehouseFk) REFERENCES vn.warehouse(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|