From 801db5b95af96a8bcfca4f1e7f4889bce0926e53 Mon Sep 17 00:00:00 2001 From: "thiago.clemente" Date: Mon, 7 Oct 2019 13:13:28 +0000 Subject: [PATCH] fixes bug#15657 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98108 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20191002_1030__mantis15657.sql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/db/migration/V20191002_1030__mantis15657.sql diff --git a/src/db/migration/V20191002_1030__mantis15657.sql b/src/db/migration/V20191002_1030__mantis15657.sql new file mode 100644 index 000000000..094e25765 --- /dev/null +++ b/src/db/migration/V20191002_1030__mantis15657.sql @@ -0,0 +1,28 @@ +declare + object_exists exception; + except_00957 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +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 > INTEGRACAO > CASH MONITOR'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.INTEGRACION.CASHMONITOR'', 1, SYSDATE, 1)'; + + exception + when object_exists then null; + when except_00957 then null; +end; +/ + +declare + object_exists exception; + except_00957 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +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 > INTEGRACAO > CASH MONITOR > VENDA DE CARTAO'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.INTEGRACION.CASHMONITOR.RELATORIOVENDACARTAOCASHMONITOR'', 1, SYSDATE, 1)'; + + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file