From 02a200c20a12db14e78ef198a8ac4b0945600133 Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 7 Nov 2018 19:41:44 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#12283=20dev:Valdevir=20qua:Valdevir?= =?UTF-8?q?=20Cria=C3=A7=C3=A3o=20do=20Relat=C3=B3rio=20Anti-fraude.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@86807 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181101_0951__mantis12283.sql | 8 ++++++++ .../postgresql/migration/V20181101_0951__mantis12283.sql | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/db/migration/V20181101_0951__mantis12283.sql create mode 100644 src/db/postgresql/migration/V20181101_0951__mantis12283.sql diff --git a/src/db/migration/V20181101_0951__mantis12283.sql b/src/db/migration/V20181101_0951__mantis12283.sql new file mode 100644 index 000000000..e52028da0 --- /dev/null +++ b/src/db/migration/V20181101_0951__mantis12283.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 >> INTEGRACAO >>> RELATORIOINTEGRACAOANTIFRAUDE'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOINTEGRACAOANTIFRAUDE'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181101_0951__mantis12283.sql b/src/db/postgresql/migration/V20181101_0951__mantis12283.sql new file mode 100644 index 000000000..e52028da0 --- /dev/null +++ b/src/db/postgresql/migration/V20181101_0951__mantis12283.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 >> INTEGRACAO >>> RELATORIOINTEGRACAOANTIFRAUDE'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOINTEGRACAOANTIFRAUDE'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file