From 8596a39c099a42eadcccbc44b3e627118b86c945 Mon Sep 17 00:00:00 2001 From: fabio Date: Tue, 3 Jul 2018 18:26:10 +0000 Subject: [PATCH] bug#11406 dev: Valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@83082 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20180627_1644__mantis11406.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/db/migration/V20180627_1644__mantis11406.sql diff --git a/src/db/migration/V20180627_1644__mantis11406.sql b/src/db/migration/V20180627_1644__mantis11406.sql new file mode 100644 index 000000000..c5bb27fd0 --- /dev/null +++ b/src/db/migration/V20180627_1644__mantis11406.sql @@ -0,0 +1,17 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (INTEGRADOTOTVS NUMBER(1,0), ERRO VARCHAR2(4000 BYTE))'; + ALTER TABLE FISCAL_IMPRESSORA ADD (ERRO VARCHAR2(4000 BYTE) + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FISCAL_R2 ADD (INTEGRADOTOTVS NUMBER(1,0), ERRO VARCHAR2(4000 BYTE)))'; + exception when column_exists then null; +end; +/