refactor: refs #7684 vehicle warehouseFk fix #2697

Merged
guillermo merged 1 commits from 7684-vehicleFixFk into dev 2024-07-10 08:22:46 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 4b0a08d965 - Show all commits

View File

@ -0,0 +1,3 @@
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;