diff --git a/src/db/migration/V20190821_1155__mantis15347.sql b/src/db/migration/V20190821_1155__mantis15347.sql new file mode 100644 index 000000000..2bd7acd7d --- /dev/null +++ b/src/db/migration/V20190821_1155__mantis15347.sql @@ -0,0 +1,39 @@ +declare + ja_existe exception; + pragma exception_init (ja_existe , -00001); +begin + execute immediate 'update FUNCION_SISTEMA set NOMBFUNCION=''ADM > RELATORIOS >> INTEGRACAO >>> BPE'' where NOMBFUNCION=''ADM > RELATORIOS >> BPE'' and DESCRUTA=''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE'''; + exception when ja_existe then null; +end; +/ +declare + ja_existe exception; + pragma exception_init (ja_existe , -00001); +begin + execute immediate 'update FUNCION_SISTEMA set NOMBFUNCION=''ADM > RELATORIOS >> INTEGRACAO >>> BPE >>>> EXPORTACAO'' where NOMBFUNCION=''ADM > RELATORIOS >> BPE >>> EXPORTACAO'' and DESCRUTA=''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.EXPORTACAO'''; + exception when ja_existe then null; +end; +/ +declare + ja_existe exception; + pragma exception_init (ja_existe , -00001); +begin + execute immediate 'update FUNCION_SISTEMA set NOMBFUNCION=''ADM > RELATORIOS >> INTEGRACAO >>> BPE >>>> RDI'' where NOMBFUNCION=''ADM > RELATORIOS >> BPE >>> RDI'' and DESCRUTA=''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.RDI'''; + exception when ja_existe then null; +end; +/ +declare + ja_existe exception; + pragma exception_init (ja_existe , -00001); +begin + execute immediate 'update FUNCION_SISTEMA set NOMBFUNCION=''ADM > RELATORIOS >> INTEGRACAO >>> BPE >>>> FINANCIERO'' where NOMBFUNCION=''ADM > RELATORIOS >> BPE >>> FINANCIERO'' and DESCRUTA=''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.FINANCIERO'''; + exception when ja_existe then null; +end; +/ +declare + ja_existe exception; + pragma exception_init (ja_existe , -00001); +begin + execute immediate 'update FUNCION_SISTEMA set NOMBFUNCION=''ADM > RELATORIOS >> INTEGRACAO >>> BPE >>>> DEVOLUCION'' where NOMBFUNCION=''ADM > RELATORIOS >> BPE >>> DEVOLUCION'' and DESCRUTA=''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.BPE.DEVOLUCION'''; + exception when ja_existe then null; +end;