6861_reservas_hotFix #2749

Merged
sergiodt merged 7 commits from 6861_reservas_hotFix into master 2024-07-17 15:05:19 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 8ff3e8acb0 - Show all commits

View File

@ -1,5 +1,5 @@
-- Place your SQL code here

`ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve
ADD IF NOT EXISTS sectorFk int(11) NULL;

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;`

`ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve ADD IF NOT EXISTS sectorFk int(11) NULL; 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;`

Afegit

Afegit
ALTER TABLE vn.itemShelvingSaleReserve ADD sectorFk int(11) NULL;
ALTER TABLE vn.itemShelvingSaleReserve ADD CONSTRAINT itemShelvingSaleReserve_sector_FK FOREIGN KEY (id) REFERENCES vn.sector(id) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve ADD sectorFk int(11) NULL;
ALTER TABLE IF EXISTS vn.itemShelvingSaleReserve ADD CONSTRAINT itemShelvingSaleReserve_sector_FK FOREIGN KEY (id) REFERENCES vn.sector(id) ON DELETE RESTRICT ON UPDATE CASCADE;