From 4d3e9ef4a75113a8745b18a5cc8be70bbf260394 Mon Sep 17 00:00:00 2001 From: valdir Date: Mon, 21 Jun 2021 19:32:42 +0000 Subject: [PATCH] =?UTF-8?q?0022628:=20AguiaBranca=20-=20GLPI=20-=2039166?= =?UTF-8?q?=20-=20[QAS]=20-=20ADM=20-=20ERRO=20SQL=20AO=20SALVAR=20CONEX?= =?UTF-8?q?=C3=83O=20bug#22628=20dev:wilian=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@107363 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210621_1606__mantis22268.sql | 7 +++++++ .../postgresql/migration/V20210621_1606__mantis22268.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20210621_1606__mantis22268.sql create mode 100644 src/db/postgresql/migration/V20210621_1606__mantis22268.sql diff --git a/src/db/migration/V20210621_1606__mantis22268.sql b/src/db/migration/V20210621_1606__mantis22268.sql new file mode 100644 index 000000000..98737492f --- /dev/null +++ b/src/db/migration/V20210621_1606__mantis22268.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CONEXION_RUTA_CTRL ADD (RUTA_DESTINOC_ID NUMBER(7,0))'; + exception when column_exists then null; +end; diff --git a/src/db/postgresql/migration/V20210621_1606__mantis22268.sql b/src/db/postgresql/migration/V20210621_1606__mantis22268.sql new file mode 100644 index 000000000..bf05ace14 --- /dev/null +++ b/src/db/postgresql/migration/V20210621_1606__mantis22268.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE CONEXION_RUTA_CTRL ADD (RUTA_DESTINOC_ID NUMBER(7,0)); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file