From 42a464ae4cb4345848d5618d9cb8aec85af55116 Mon Sep 17 00:00:00 2001 From: wilian Date: Tue, 25 Apr 2017 21:29:33 +0000 Subject: [PATCH] bug #8921 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68260 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170424_1738__mantis8921.sql | 7 +++++++ src/db/migration/V20170424_1739__mantis8921.sql | 9 +++++++++ src/db/migration/V20170424_1740__mantis8921.sql | 7 +++++++ src/db/migration/V20170424_1741__mantis8921.sql | 9 +++++++++ 4 files changed, 32 insertions(+) create mode 100644 src/db/migration/V20170424_1738__mantis8921.sql create mode 100644 src/db/migration/V20170424_1739__mantis8921.sql create mode 100644 src/db/migration/V20170424_1740__mantis8921.sql create mode 100644 src/db/migration/V20170424_1741__mantis8921.sql 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