From 590ee3f904b5510a3ca24777387640e849d97509 Mon Sep 17 00:00:00 2001 From: valdir Date: Wed, 20 Mar 2019 20:29:11 +0000 Subject: [PATCH] =?UTF-8?q?0013751:=20Par=C3=A2metro=20Linha=20bug#13751?= =?UTF-8?q?=20dev:daniel=20qua:jose?= 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@91003 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190320_1605__mantis13751.sql | 7 +++++++ .../postgresql/migration/V20190320_1605__mantis13751.sql | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/db/migration/V20190320_1605__mantis13751.sql create mode 100644 src/db/postgresql/migration/V20190320_1605__mantis13751.sql diff --git a/src/db/migration/V20190320_1605__mantis13751.sql b/src/db/migration/V20190320_1605__mantis13751.sql new file mode 100644 index 000000000..c86b1a68d --- /dev/null +++ b/src/db/migration/V20190320_1605__mantis13751.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD INDVENDAEMBARCADA NUMBER(1,0) DEFAULT 0'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190320_1605__mantis13751.sql b/src/db/postgresql/migration/V20190320_1605__mantis13751.sql new file mode 100644 index 000000000..5f9f0a09f --- /dev/null +++ b/src/db/postgresql/migration/V20190320_1605__mantis13751.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE RUTA ADD INDVENDAEMBARCADA NUMBER(1,0) DEFAULT 0; +END +$$; \ No newline at end of file