From 8ee55c5eb9d2a20fa273cd81e5b9e0488cfb42c1 Mon Sep 17 00:00:00 2001 From: julio Date: Tue, 8 Oct 2019 13:41:23 +0000 Subject: [PATCH] bug#15545 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98139 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V2019107_2125__mantis15545.sql | 7 +++++++ src/db/postgresql/migration/V2019107_2125__mantis15545.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V2019107_2125__mantis15545.sql create mode 100644 src/db/postgresql/migration/V2019107_2125__mantis15545.sql diff --git a/src/db/migration/V2019107_2125__mantis15545.sql b/src/db/migration/V2019107_2125__mantis15545.sql new file mode 100644 index 000000000..cc44226d0 --- /dev/null +++ b/src/db/migration/V2019107_2125__mantis15545.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD (INDCUOTANUNCALIBERAR NUMBER(1,0))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V2019107_2125__mantis15545.sql b/src/db/postgresql/migration/V2019107_2125__mantis15545.sql new file mode 100644 index 000000000..45c894d63 --- /dev/null +++ b/src/db/postgresql/migration/V2019107_2125__mantis15545.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO ADD (INDCUOTANUNCALIBERAR NUMBER(1,0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file