fix: refs #8030 foreign key zoneGeo
This commit is contained in:
parent
a48843a5cf
commit
3c89d1e5e0
|
@ -2,4 +2,5 @@
|
||||||
|
|
||||||
ALTER TABLE vn.priceDelta ADD IF NOT EXISTS zoneGeoFk int(11) NULL;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue