6937-Agrupar-los-DUA-en-funcion-del-transitario-y-pais #2097

Merged
carlosap merged 3 commits from 6937-Agrupar-los-DUA-en-funcion-del-transitario-y-pais into dev 2024-02-27 09:03:13 +00:00
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
ALTER TABLE vn.country
MODIFY COLUMN code varchar(2) NOT NULL;
ALTER TABLE vn.country
ADD CONSTRAINT country_unique UNIQUE KEY (code);
ALTER TABLE vn.transitoryDuaUnified
ADD countryCodeFk varchar(2) DEFAULT 'EC' NOT NULL;
ALTER TABLE vn.transitoryDuaUnified
ADD CONSTRAINT transitoryDuaUnified_country_FK FOREIGN KEY (countryCodeFk)
REFERENCES vn.country(code);