From d5782ac4c8200a0f3c298d42b816d98970b30a58 Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 26 Apr 2017 13:09:30 +0000 Subject: [PATCH] fixes bug #8921 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68270 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170426_0935__mantis8921.sql | 7 +++++++ src/db/migration/V20170426_0936__mantis8921.sql | 9 +++++++++ src/db/migration/V20170426_0937__mantis8921.sql | 7 +++++++ src/db/migration/V20170426_0938__mantis8921.sql | 9 +++++++++ 4 files changed, 32 insertions(+) create mode 100644 src/db/migration/V20170426_0935__mantis8921.sql create mode 100644 src/db/migration/V20170426_0936__mantis8921.sql create mode 100644 src/db/migration/V20170426_0937__mantis8921.sql create mode 100644 src/db/migration/V20170426_0938__mantis8921.sql diff --git a/src/db/migration/V20170426_0935__mantis8921.sql b/src/db/migration/V20170426_0935__mantis8921.sql new file mode 100644 index 000000000..368a1ea7b --- /dev/null +++ b/src/db/migration/V20170426_0935__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO 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/V20170426_0936__mantis8921.sql b/src/db/migration/V20170426_0936__mantis8921.sql new file mode 100644 index 000000000..35de57dfa --- /dev/null +++ b/src/db/migration/V20170426_0936__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO + ADD CONSTRAINT FK_PACOTE_FORMAPAGO_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 diff --git a/src/db/migration/V20170426_0937__mantis8921.sql b/src/db/migration/V20170426_0937__mantis8921.sql new file mode 100644 index 000000000..be6dca676 --- /dev/null +++ b/src/db/migration/V20170426_0937__mantis8921.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO ADD OCD_ID NUMBER(7,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170426_0938__mantis8921.sql b/src/db/migration/V20170426_0938__mantis8921.sql new file mode 100644 index 000000000..cf6fd20a2 --- /dev/null +++ b/src/db/migration/V20170426_0938__mantis8921.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE PACOTE_FORMAPAGO + ADD CONSTRAINT FK_PACOTE_FORMAPAGO_OCD FOREIGN KEY (OCD_ID) + REFERENCES OCD (OCD_ID)'; + exception when object_exists then null; +end; \ No newline at end of file