From 514d4aa252af2a8b7ee8cd665cbe1066b4e8c415 Mon Sep 17 00:00:00 2001 From: julio Date: Thu, 17 Oct 2019 20:55:22 +0000 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20nos=20scripts=20bug#15545?= =?UTF-8?q?=20dev:=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98314 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191017_1741__mantis15545.sql | 7 +++++++ src/db/postgresql/migration/V2019117_1741__mantis15545.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20191017_1741__mantis15545.sql create mode 100644 src/db/postgresql/migration/V2019117_1741__mantis15545.sql diff --git a/src/db/migration/V20191017_1741__mantis15545.sql b/src/db/migration/V20191017_1741__mantis15545.sql new file mode 100644 index 000000000..778bcec30 --- /dev/null +++ b/src/db/migration/V20191017_1741__mantis15545.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDCUOTANUNCALIBERAR DEFAULT 0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V2019117_1741__mantis15545.sql b/src/db/postgresql/migration/V2019117_1741__mantis15545.sql new file mode 100644 index 000000000..e65b99b1a --- /dev/null +++ b/src/db/postgresql/migration/V2019117_1741__mantis15545.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDCUOTANUNCALIBERAR DEFAULT 0); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file