2024-07-17 14:09:09 +00:00
|
|
|
-- Place your SQL code here
|
|
|
|
|
2024-07-17 14:48:52 +00:00
|
|
|
ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve
|
|
|
|
ADD IF NOT EXISTS sectorFk int(11) NULL;
|
2024-07-17 14:09:09 +00:00
|
|
|
|
2024-07-17 14:48:52 +00:00
|
|
|
ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve
|
|
|
|
DROP FOREIGN KEY IF EXISTS itemShelvingSaleReserve_sector_FK;
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve
|
|
|
|
ADD CONSTRAINT itemShelvingSaleReserve_sector_FK FOREIGN KEY (id)
|
|
|
|
REFERENCES vn.sector(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|