From 5619e357cc33da9245df264b78bb54f8dc55d787 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 13 Jan 2017 20:24:46 +0000 Subject: [PATCH] fixes bug #8466 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@64956 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170113_1757__mantis8466.sql | 7 +++++++ src/db/migration/V20170113_1758__mantis8466.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20170113_1757__mantis8466.sql create mode 100644 src/db/migration/V20170113_1758__mantis8466.sql 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