8 lines
449 B
MySQL
8 lines
449 B
MySQL
|
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;
|