From c5fb1f9e793208bd35b21f95da404c611765d7ac Mon Sep 17 00:00:00 2001 From: wilian Date: Mon, 17 Apr 2017 21:56:44 +0000 Subject: [PATCH] fixes bug #8882 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68110 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170411_1133__mantis8882.sql | 7 +++++++ src/db/migration/V20170411_1134__mantis8882.sql | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/migration/V20170411_1133__mantis8882.sql create mode 100644 src/db/migration/V20170411_1134__mantis8882.sql diff --git a/src/db/migration/V20170411_1133__mantis8882.sql b/src/db/migration/V20170411_1133__mantis8882.sql new file mode 100644 index 000000000..406866f36 --- /dev/null +++ b/src/db/migration/V20170411_1133__mantis8882.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD CAJA_ID NUMBER(15,0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170411_1134__mantis8882.sql b/src/db/migration/V20170411_1134__mantis8882.sql new file mode 100644 index 000000000..34cbbcab4 --- /dev/null +++ b/src/db/migration/V20170411_1134__mantis8882.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE LOG_CONFERENCIA + ADD CONSTRAINT FK_LOGCONFERENCIA_CAJA FOREIGN KEY (CAJA_ID) + REFERENCES CAJA (CAJA_ID)'; + exception when object_exists then null; +end; \ No newline at end of file