Merge pull request '6937-Agrupar-los-DUA-en-funcion-del-transitario-y-pais' (!2097) from 6937-Agrupar-los-DUA-en-funcion-del-transitario-y-pais into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
Reviewed-on: #2097 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
7795c949b1
|
@ -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);
|
Loading…
Reference in New Issue