From ba00eee68812d6768983f0c925edeb111dc7f92d Mon Sep 17 00:00:00 2001 From: leonardo Date: Thu, 7 Mar 2019 20:38:26 +0000 Subject: [PATCH] =?UTF-8?q?13714:=20Relat=C3=B3rio=20embarque=20por=20loca?= =?UTF-8?q?lidade=20-=20AGERBA=20bug#13714=20dev:lucas=20qua:renato?= 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@90544 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190228_1000__mantis13714.sql | 7 +++++++ .../postgresql/migration/V20190228_1004__mantis13714.sql | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/db/migration/V20190228_1000__mantis13714.sql create mode 100644 src/db/postgresql/migration/V20190228_1004__mantis13714.sql diff --git a/src/db/migration/V20190228_1000__mantis13714.sql b/src/db/migration/V20190228_1000__mantis13714.sql new file mode 100644 index 000000000..5b96e0fd3 --- /dev/null +++ b/src/db/migration/V20190228_1000__mantis13714.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 OPERACIONAIS > EMBARQUE LOCALIDADE'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOEMBARQUELOCALIDADE'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190228_1004__mantis13714.sql b/src/db/postgresql/migration/V20190228_1004__mantis13714.sql new file mode 100644 index 000000000..fbdb561ce --- /dev/null +++ b/src/db/postgresql/migration/V20190228_1004__mantis13714.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,'RELATORIOS > RELATORIOS OPERACIONAIS > EMBARQUE LOCALIDADE', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOEMBARQUELOCALIDADE',1,sysdate,1); +EXCEPTION WHEN unique_violation THEN NULL; +END +$$;