From c9007d6af5b24d03f19f04e217fa90ed01d4de7c Mon Sep 17 00:00:00 2001 From: emerson Date: Mon, 21 Jan 2019 17:37:55 +0000 Subject: [PATCH] fixes bug#0013138 dev: thiago qua: renato MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implementação efetuada. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@89111 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190117_1506__mantis13138.sql | 7 +++++++ .../postgresql/migration/V20190117_1506__mantis13138.sql | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20190117_1506__mantis13138.sql create mode 100644 src/db/postgresql/migration/V20190117_1506__mantis13138.sql diff --git a/src/db/migration/V20190117_1506__mantis13138.sql b/src/db/migration/V20190117_1506__mantis13138.sql new file mode 100644 index 000000000..4aff937f2 --- /dev/null +++ b/src/db/migration/V20190117_1506__mantis13138.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE FECHAMENTO_PARAMGERAL ADD (BOLETO_BANCO_INSTRUCAO VARCHAR2(255))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190117_1506__mantis13138.sql b/src/db/postgresql/migration/V20190117_1506__mantis13138.sql new file mode 100644 index 000000000..0cfdf24ac --- /dev/null +++ b/src/db/postgresql/migration/V20190117_1506__mantis13138.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE FECHAMENTO_PARAMGERAL ADD (BOLETO_BANCO_INSTRUCAO VARCHAR(255)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file