diff --git a/src/db/migration/V20170113_1757__mantis8466.sql b/src/db/migration/V20170113_1757__mantis8466.sql new file mode 100644 index 000000000..552f38c46 --- /dev/null +++ b/src/db/migration/V20170113_1757__mantis8466.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD (NOTACREDITOVENDAPACOTE_ID NUMBER(7,0))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170113_1758__mantis8466.sql b/src/db/migration/V20170113_1758__mantis8466.sql new file mode 100644 index 000000000..31a67387c --- /dev/null +++ b/src/db/migration/V20170113_1758__mantis8466.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD CONSTRAINT FK_NC_PACOTE FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID) REFERENCES NOTA_CREDITO_VENDA_PACOTE (NOTACREDITOVENDAPACOTE_ID)'; + exception when object_exists then null; +end; \ No newline at end of file