From 22ab9dc16c15921a5864ae1e8f1e38edc88cf045 Mon Sep 17 00:00:00 2001 From: walace Date: Wed, 13 Jan 2021 19:41:04 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#20989=20qua:juliane=20dev:valdir=20?= =?UTF-8?q?Foi=20criado=20uma=20fun=C3=A7=C3=A3o=20sistema=20'USUARIO=20RE?= =?UTF-8?q?LATORIO=20GRATUIDADE=20AGER=20>=20MENU=20RELATORIO=20>=20ESTATI?= =?UTF-8?q?STICO=20>=20RELATORIO=20GRATUIDADE=20AGER'=20para=20definir=20q?= =?UTF-8?q?ue=20o=20usuario=20tenha=20acesso=20somente=20ao=20=C3=B3rgao?= =?UTF-8?q?=20concedenet=20AGER/MT=20Na=20descri=C3=A7=C3=A3o=20da=20espec?= =?UTF-8?q?,=20pede=203=20tipos=20de=20passagens,=20por=C3=A9m=20na=20prop?= =?UTF-8?q?ria=20espec=20tem=20um=20print=20pedindo=20somente=20o=20tipo?= =?UTF-8?q?=20Normal.=20Conversei=20com=20o=20R=C3=A9gis,=20e=20foi=20defi?= =?UTF-8?q?nido=20para=20considerar=20somente=20o=20tipo=20de=20passagem?= =?UTF-8?q?=20Normal.?= 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@105011 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210116_1515__mantis20989.sql | 7 +++++++ .../postgresql/migration/V20210113_1517__mantis20989.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20210116_1515__mantis20989.sql create mode 100644 src/db/postgresql/migration/V20210113_1517__mantis20989.sql diff --git a/src/db/migration/V20210116_1515__mantis20989.sql b/src/db/migration/V20210116_1515__mantis20989.sql new file mode 100644 index 000000000..8f2d5a627 --- /dev/null +++ b/src/db/migration/V20210116_1515__mantis20989.sql @@ -0,0 +1,7 @@ +declare +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values +(FUNCION_SISTEMA_SEQ.NEXTVAL,1,''USUARIO RELATORIO GRATUIDADE AGER > MENU RELATORIO > ESTATISTICO > RELATORIO GRATUIDADE AGER'', ''USUARIO.RELATORIO.AGER'',1,SYSDATE,-1)'; + exception when others then null; +end; +/ \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210113_1517__mantis20989.sql b/src/db/postgresql/migration/V20210113_1517__mantis20989.sql new file mode 100644 index 000000000..33f332ff4 --- /dev/null +++ b/src/db/postgresql/migration/V20210113_1517__mantis20989.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,1,'USUARIO AGER > MENU RELATORIO > ESTATISTICO > GRATUIDADE AGER', 'USUARIO.RELATORIO.AGER',1,SYSDATE,-1); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;