diff --git a/src/db/migration/V20170424_1738__mantis8921.sql b/src/db/migration/V20170424_1738__mantis8921.sql new file mode 100644 index 000000000..7d1b3dff9 --- /dev/null +++ b/src/db/migration/V20170424_1738__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO ADD OCD_ID NUMBER(15,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170424_1739__mantis8921.sql b/src/db/migration/V20170424_1739__mantis8921.sql new file mode 100644 index 000000000..52fc832a9 --- /dev/null +++ b/src/db/migration/V20170424_1739__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO + ADD CONSTRAINT FK_CAJA_DIVERSOS_PAGO_OCD FOREIGN KEY (OCD_ID) + REFERENCES OCD (OCD_ID)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170424_1740__mantis8921.sql b/src/db/migration/V20170424_1740__mantis8921.sql new file mode 100644 index 000000000..d6cbcebab --- /dev/null +++ b/src/db/migration/V20170424_1740__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO 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/V20170424_1741__mantis8921.sql b/src/db/migration/V20170424_1741__mantis8921.sql new file mode 100644 index 000000000..90ad8c80e --- /dev/null +++ b/src/db/migration/V20170424_1741__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO + ADD CONSTRAINT FK_CAJA_DIVERSOS_PAGO_NC FOREIGN KEY (NOTACREDITOVENDAPACOTE_ID) + REFERENCES NOTA_CREDITO_VENDA_PACOTE (NOTACREDITOVENDAPACOTE_ID)'; + exception when object_exists then null; +end; \ No newline at end of file