From 2ecc55a2b551d0671b63a89ad41e850cb98cf6ac Mon Sep 17 00:00:00 2001 From: "fabricio.oliveira" Date: Tue, 26 Feb 2019 21:57:17 +0000 Subject: [PATCH] =?UTF-8?q?0013650:=20Chamado=2066819=20-=20Relat=C3=B3rio?= =?UTF-8?q?=20de=20Requisi=C3=A7=C3=A3o=20(Ordem=20de=20Servi=C3=A7o)=20fi?= =?UTF-8?q?xes=20bug#13650=20dev:Wallace=20qua:Juliane?= 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@90294 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190226_1545__mantis13650.sql | 7 +++++++ .../postgresql/migration/V20190226_1545__mantis13650.sql | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/db/migration/V20190226_1545__mantis13650.sql create mode 100644 src/db/postgresql/migration/V20190226_1545__mantis13650.sql diff --git a/src/db/migration/V20190226_1545__mantis13650.sql b/src/db/migration/V20190226_1545__mantis13650.sql new file mode 100644 index 000000000..3bbdb0482 --- /dev/null +++ b/src/db/migration/V20190226_1545__mantis13650.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,2,''RELATORIOS > RELATORIOS FINANCEIRO > VENDAS DE REQUISICAO'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASREQUISICAO'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190226_1545__mantis13650.sql b/src/db/postgresql/migration/V20190226_1545__mantis13650.sql new file mode 100644 index 000000000..59100ef55 --- /dev/null +++ b/src/db/postgresql/migration/V20190226_1545__mantis13650.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'),2,'RELATORIOS > RELATORIOS FINANCEIRO > VENDAS DE REQUISICAO','COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASREQUISICAO',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;