From d7bbea0f2e930bdfccb8a07072067ce625a4e408 Mon Sep 17 00:00:00 2001 From: wilian Date: Thu, 28 Dec 2017 19:53:44 +0000 Subject: [PATCH] fixes bug #10399 fixes bug #10389 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@77607 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20171226_0953__mantis10399.sql | 7 +++++++ src/db/migration/V20171226_0954__mantis10399.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20171226_0953__mantis10399.sql create mode 100644 src/db/migration/V20171226_0954__mantis10399.sql diff --git a/src/db/migration/V20171226_0953__mantis10399.sql b/src/db/migration/V20171226_0953__mantis10399.sql new file mode 100644 index 000000000..3c6836d69 --- /dev/null +++ b/src/db/migration/V20171226_0953__mantis10399.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE MOTIVO_CANCELACION ADD INDEXIBECANCEL NUMBER(1)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20171226_0954__mantis10399.sql b/src/db/migration/V20171226_0954__mantis10399.sql new file mode 100644 index 000000000..583914a7e --- /dev/null +++ b/src/db/migration/V20171226_0954__mantis10399.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'UPDATE MOTIVO_CANCELACION SET INDEXIBECANCEL = 1, FECMODIF = SYSDATE WHERE MOTIVOCANCELACION_ID IN (32,31,37,36)'; + exception when column_exists then null; +end; \ No newline at end of file