From bfca34293c4901e70b7b307ce09c3fce205a7bd5 Mon Sep 17 00:00:00 2001 From: gleimar Date: Fri, 24 May 2019 13:46:46 +0000 Subject: [PATCH] fixes bug#14443 dev:alberto qua:junia git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@93729 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190523_1638__mantis14443.sql | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/db/migration/V20190523_1638__mantis14443.sql b/src/db/migration/V20190523_1638__mantis14443.sql index bdf914031..c695d4af0 100644 --- a/src/db/migration/V20190523_1638__mantis14443.sql +++ b/src/db/migration/V20190523_1638__mantis14443.sql @@ -1,9 +1,23 @@ +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 > SEGURANÇA > PAINEL BPE'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINEL_BPE'', 1, NULL, 1)'; + exception when dup_val_on_index then null; +end; +/ -INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID, SISTEMA_ID, NOMBFUNCION, DESCRUTA, ACTIVO, FECMODIF, USUARIO_ID) -VALUES(FUNCION_SISTEMA_SEQ.nextval, 1, 'ADM > SEGURANÇA > PAINEL BPE', 'COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINEL_BPE', 1, NULL, 1); +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) VALUES +(CONSTANTE_seq.nextval,''URL_PAINEL_BPE'',''URL_PAINEL_BPE'',''1'',NULL,1,1,null,1)'; + exception when dup_val_on_index then null; +end; +/ -INSERT INTO CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) VALUES -(CONSTANTE_seq.nextval,'URL_PAINEL_BPE','URL_PAINEL_BPE','1',NULL,1,1,TIMESTAMP '2016-12-09 10:22:02.000000',1) -; \ No newline at end of file