From 5ce55309dda1c070797d430fbb49fa3297b5237a Mon Sep 17 00:00:00 2001 From: fabio Date: Tue, 3 Jul 2018 21:29:46 +0000 Subject: [PATCH] bug#11406 dev: Valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@83094 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180627_1644__mantis11406.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/db/migration/V20180627_1644__mantis11406.sql b/src/db/migration/V20180627_1644__mantis11406.sql index c5bb27fd0..9d5173da2 100644 --- a/src/db/migration/V20180627_1644__mantis11406.sql +++ b/src/db/migration/V20180627_1644__mantis11406.sql @@ -2,8 +2,8 @@ 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) + execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (ERRO VARCHAR2(4000 BYTE))'; exception when column_exists then null; end; / @@ -11,7 +11,8 @@ 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)))'; + execute immediate 'ALTER TABLE FISCAL_R2 ADD (INTEGRADOTOTVS NUMBER(1,0) )'; + execute immediate 'ALTER TABLE FISCAL_R2 ADD (ERRO VARCHAR2(4000 BYTE))'; exception when column_exists then null; end; /