fix: refs #8030 foreign key zoneGeo

This commit is contained in:
Pako Natek 2024-10-02 07:34:57 +02:00
parent a48843a5cf
commit 3c89d1e5e0
1 changed files with 2 additions and 1 deletions

View File

@ -2,4 +2,5 @@
ALTER TABLE vn.priceDelta ADD IF NOT EXISTS zoneGeoFk int(11) NULL;
ALTER TABLE vn.priceDelta ADD CONSTRAINT priceDelta_XDiario_FK FOREIGN KEY IF NOT EXISTS (zoneGeoFk) REFERENCES vn.XDiario(id) ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE vn.priceDelta ADD CONSTRAINT priceDelta_zoneGeo_FK FOREIGN KEY IF NOT EXISTS (zoneGeoFk)
REFERENCES `zoneGeo` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;