From 73fb39c0b37a61e19387819227d3750cae584810 Mon Sep 17 00:00:00 2001 From: walace Date: Wed, 5 Sep 2018 21:43:04 +0000 Subject: [PATCH] Criado o relatorio vendas de cartoes fixes bug#11948 dev:julio qua:marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@85139 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20180905_1829__mantis11948.sql | 7 +++++++ .../migration/V20180905_1829__mantis11948.sql | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/db/migration/V20180905_1829__mantis11948.sql create mode 100644 src/db/postgresql/migration/V20180905_1829__mantis11948.sql diff --git a/src/db/migration/V20180905_1829__mantis11948.sql b/src/db/migration/V20180905_1829__mantis11948.sql new file mode 100644 index 000000000..fb6d42afd --- /dev/null +++ b/src/db/migration/V20180905_1829__mantis11948.sql @@ -0,0 +1,7 @@ +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 >> VENDAS DE CARTÕES'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASCARTOES'',''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/V20180905_1829__mantis11948.sql b/src/db/postgresql/migration/V20180905_1829__mantis11948.sql new file mode 100644 index 000000000..5b89202c4 --- /dev/null +++ b/src/db/postgresql/migration/V20180905_1829__mantis11948.sql @@ -0,0 +1,15 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id, sistema_id, nombfuncion, descruta, activo, fecmodif, usuario_id) + values ( + nextval('funcion_sistema_seq'), + 1, + 'ADM > RELATORIOS >> VENDAS DE CARTÕES', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASCARTOES', + 1, + now(), + 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file