8144-devToTest_2448 #3216
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE vn.address
|
||||
ADD geoFk int(11) DEFAULT NULL NULL AFTER isLogifloraAllowed,
|
||||
ADD CONSTRAINT address_zoneGeo_FK FOREIGN KEY (geoFk)
|
||||
REFERENCES vn.zoneGeo(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@ -0,0 +1,7 @@
|
|||
ALTER TABLE vn.client
|
||||
CHANGE hasDailyInvoice hasDailyInvoice tinyint(1) DEFAULT 0 NOT NULL
|
||||
COMMENT 'Indica si el cliente requiere facturación diaria por defecto se copiará lo que tenga country.hasDailyInvoice'
|
||||
AFTER recommendedCredit,
|
||||
ADD geoFk int(11) DEFAULT NULL NULL AFTER hasDailyInvoice,
|
||||
ADD CONSTRAINT client_zoneGeo_FK FOREIGN KEY (geoFk)
|
||||
REFERENCES vn.zoneGeo(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE vn.supplier
|
||||
CHANGE companySize companySize enum('small','medium','big') CHARACTER SET utf8mb3
|
||||
COLLATE utf8mb3_general_ci DEFAULT NULL NULL AFTER stamp,
|
||||
ADD geoFk int(11) DEFAULT NULL NULL AFTER companySize,
|
||||
ADD CONSTRAINT supplier_zoneGeo_FK FOREIGN KEY (geoFk)
|
||||
REFERENCES vn.zoneGeo(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|
Loading…
Reference in New Issue