diff --git a/src/db/migration/V20170525_1528__mantis9028.sql b/src/db/migration/V20170525_1528__mantis9028.sql new file mode 100644 index 000000000..6cb7ac6a9 --- /dev/null +++ b/src/db/migration/V20170525_1528__mantis9028.sql @@ -0,0 +1,16 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE TARJETA_CREDITO ADD (EMPRESA_ID NUMBER(7))'; + exception when object_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE TARJETA_CREDITO ADD CONSTRAINT TARJETA_CREDITO_FK_EMPRESA FOREIGN KEY (EMPRESA_ID) REFERENCES EMPRESA (EMPRESA_ID) ENABLE'; + exception when object_exists then null; +end;