From 73d1472fe6cefe208c20ae898f069c964cca02cf Mon Sep 17 00:00:00 2001 From: walace Date: Fri, 1 Sep 2017 22:49:36 +0000 Subject: [PATCH] fixes bug #9388 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@73458 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170828_1816_mantis9388.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db/migration/V20170828_1816_mantis9388.sql diff --git a/src/db/migration/V20170828_1816_mantis9388.sql b/src/db/migration/V20170828_1816_mantis9388.sql new file mode 100644 index 000000000..f7f9a9134 --- /dev/null +++ b/src/db/migration/V20170828_1816_mantis9388.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > RELATORIOS >> FINANCEIRO >>DOCUMENTOS FISCAIS'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODOCUMENTOSFISCAIS'',1,sysdate,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file