From 7347c74a612bd69280795261bd122c33249a6bcd Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 14 Aug 2020 21:32:37 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#19632=20qua:=20dev:Valdir=20Impleme?= =?UTF-8?q?ntado=20relat=C3=B3rio=20para=20mostrar=20caixa=20por=20=C3=B3r?= =?UTF-8?q?g=C3=A3o=20concedente=20pode=20filtrar=20por=20usu=C3=A1rio=20e?= =?UTF-8?q?=20por=20ag=C3=AAncia.?= 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@102901 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20200806_1437__mantis19632.sql | 18 ++++++++++++++++++ .../migration/V20200814_1817__mantis19632.sql | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/db/migration/V20200806_1437__mantis19632.sql create mode 100644 src/db/postgresql/migration/V20200814_1817__mantis19632.sql diff --git a/src/db/migration/V20200806_1437__mantis19632.sql b/src/db/migration/V20200806_1437__mantis19632.sql new file mode 100644 index 000000000..a8381999b --- /dev/null +++ b/src/db/migration/V20200806_1437__mantis19632.sql @@ -0,0 +1,18 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate + 'INSERT INTO funcion_sistema (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + VALUES + (funcion_sistema_seq.NEXTVAL, 1, ''ADM > RELATORIO >> FINANCEIRO >>> CAIXA ORGAO CONCEDENTE'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOCAIXAIRGACOCONCEDENTE'', 1, SYSDATE, 1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; + diff --git a/src/db/postgresql/migration/V20200814_1817__mantis19632.sql b/src/db/postgresql/migration/V20200814_1817__mantis19632.sql new file mode 100644 index 000000000..629bbb249 --- /dev/null +++ b/src/db/postgresql/migration/V20200814_1817__mantis19632.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) + values (nextval('funcion_sistema_seq'),1,'ADM > RELATORIO >> FINANCEIRO >>> CAIXA ORGAO CONCEDENTE','COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOCAIXAIRGACOCONCEDENTE',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;