From be589410223206e1a63e5dde01b001656f009e6e Mon Sep 17 00:00:00 2001 From: gleimar Date: Wed, 17 Aug 2016 13:44:15 +0000 Subject: [PATCH] =?UTF-8?q?tratamento=20de=20erro=20qd=20a=20funcion=20sis?= =?UTF-8?q?tema=20j=C3=A1=20foi=20inserida?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@59203 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/java/db/migration/V20160801_1033__mantis7781.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/db/migration/V20160801_1033__mantis7781.sql b/src/java/db/migration/V20160801_1033__mantis7781.sql index db3ee91b6..545752ea9 100644 --- a/src/java/db/migration/V20160801_1033__mantis7781.sql +++ b/src/java/db/migration/V20160801_1033__mantis7781.sql @@ -1,6 +1,8 @@ declare column_exists exception; + ja_existe exception; pragma exception_init (column_exists , -01430); + pragma exception_init (ja_existe , -00001); begin execute immediate 'ALTER TABLE EMPRESA ADD INDGENNUMFOLIOVTAINTIMPOST NUMBER(1,0) DEFAULT 0 NOT NULL'; INSERT INTO FUNCION_SISTEMA VALUES @@ -13,5 +15,7 @@ begin sysdate, 1 ); - exception when column_exists then null; + exception + when column_exists then null; + when ja_existe then null; end; \ No newline at end of file