From 5b779c38331f3ad26dae7515e584d867011e36c4 Mon Sep 17 00:00:00 2001 From: alberto Date: Tue, 28 Aug 2018 22:18:50 +0000 Subject: [PATCH] AJUSTES PAF 2018 bug#11562 dev:trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84826 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180826_2310__pafecf.sql | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/db/migration/V20180826_2310__pafecf.sql b/src/db/migration/V20180826_2310__pafecf.sql index 6aafe2eac..6135009f1 100644 --- a/src/db/migration/V20180826_2310__pafecf.sql +++ b/src/db/migration/V20180826_2310__pafecf.sql @@ -3,7 +3,16 @@ declare pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE FISCAL_D3 ADD (BOLETO_ID NUMBER(15), PUNTOVENTA_ID NUMBER(7), CORRIDA_ID NUMBER(7), FECCORRIDA DATE)'; + execute immediate 'ALTER TABLE FISCAL_D2 ADD (PUNTOVENTA_ID NUMBER(7), CORRIDA_ID NUMBER(7), FECCORRIDA DATE)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); + +begin + execute immediate 'ALTER TABLE FISCAL_D3 ADD (BOLETO_ID NUMBER(15))'; exception when column_exists then null; end;