From f4bff41c0a007cd475d2c204b500f947b8cf72a5 Mon Sep 17 00:00:00 2001 From: julio Date: Thu, 31 May 2018 21:45:17 +0000 Subject: [PATCH] fixes bug#11035 dev:julio qua:julio git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@82304 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20180524_1126__mantis11035.sql | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/db/migration/V20180524_1126__mantis11035.sql diff --git a/src/db/migration/V20180524_1126__mantis11035.sql b/src/db/migration/V20180524_1126__mantis11035.sql new file mode 100644 index 000000000..56ff68127 --- /dev/null +++ b/src/db/migration/V20180524_1126__mantis11035.sql @@ -0,0 +1,29 @@ +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 >> BPE'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +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 >> BPE >>> EXPORTACAO'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.EXPORTACAO'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +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 >> BPE >>> RDI'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.RDI'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +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 >> BPE >>> FINANCIERO'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.FINANCIERO'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +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 >> BPE >>> DEVOLUCION'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.DEVOLUCION'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +end; \ No newline at end of file