From 885a5c48b1aac85369ea984a7185f8ce02b51e4b Mon Sep 17 00:00:00 2001 From: emerson Date: Wed, 8 May 2019 17:57:49 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#0014171=20dev:=20valdir=20qua:=20ma?= =?UTF-8?q?rcelo=20Implementa=C3=A7=C3=A3o=20do=20parametro=20para=20valid?= =?UTF-8?q?a=C3=A7=C3=A3o=20do=20documento=20monitrip.?= 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@93000 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190507_1700__mantis14171.sql | 7 +++++++ .../postgresql/migration/V20190507_1700__mantis14171.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20190507_1700__mantis14171.sql create mode 100644 src/db/postgresql/migration/V20190507_1700__mantis14171.sql diff --git a/src/db/migration/V20190507_1700__mantis14171.sql b/src/db/migration/V20190507_1700__mantis14171.sql new file mode 100644 index 000000000..62a6fc21b --- /dev/null +++ b/src/db/migration/V20190507_1700__mantis14171.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD INDVALDOCOBLIGATORIOMONITRIP 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/V20190507_1700__mantis14171.sql b/src/db/postgresql/migration/V20190507_1700__mantis14171.sql new file mode 100644 index 000000000..be88da34b --- /dev/null +++ b/src/db/postgresql/migration/V20190507_1700__mantis14171.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + 'ALTER TABLE ORGAO_CONCEDENTE ADD COLUMN INDVALDOCOBLIGATORIOMONITRIP NUMERIC(1,0) DEFAULT 0'; +END +$$; + \ No newline at end of file