From d33cea07dd9b57d8b7a647e00e68c1283d2e9a16 Mon Sep 17 00:00:00 2001 From: emerson Date: Tue, 14 Aug 2018 18:21:52 +0000 Subject: [PATCH] fixes bug#0011602 dev: lucas qua: renato MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Para que o Arquivo Layout Internacional apareça é necessário ativar a propriedade permiteLayoutInternacional=1. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84229 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180813_0942__mantis11602.sql | 8 ++++++++ .../postgresql/migration/V20180813_0947__mantis11602.sql | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/migration/V20180813_0942__mantis11602.sql create mode 100644 src/db/postgresql/migration/V20180813_0947__mantis11602.sql diff --git a/src/db/migration/V20180813_0942__mantis11602.sql b/src/db/migration/V20180813_0942__mantis11602.sql new file mode 100644 index 000000000..f46a298a1 --- /dev/null +++ b/src/db/migration/V20180813_0942__mantis11602.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESTACION_IMPRESORA DROP COLUMN INDARCHIVOLAYOUTINTERNACIONAL'; + execute immediate 'ALTER TABLE ESTACION_IMPRESORA ADD NOMBARCHIVOLAYOUTINTERNACIONAL VARCHAR2(60)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180813_0947__mantis11602.sql b/src/db/postgresql/migration/V20180813_0947__mantis11602.sql new file mode 100644 index 000000000..f4a258b50 --- /dev/null +++ b/src/db/postgresql/migration/V20180813_0947__mantis11602.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_IMPRESORA DROP COLUMN INDARCHIVOLAYOUTINTERNACIONAL; + ALTER TABLE ESTACION_IMPRESORA ADD NOMBARCHIVOLAYOUTINTERNACIONAL VARCHAR(60); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file