From 05a2e257e06f1b77fa2257e697bac2f1e6b62f83 Mon Sep 17 00:00:00 2001 From: emerson Date: Wed, 31 Oct 2018 18:48:31 +0000 Subject: [PATCH] fixes bug#0011951 dev: thiago qua: wallysson MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implementação efetuada conforme evidência. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@86665 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181018_1042__mantis11951.sql | 14 ++++++++++++++ .../migration/V20181018_1051__mantis11951.sql | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/db/migration/V20181018_1042__mantis11951.sql create mode 100644 src/db/postgresql/migration/V20181018_1051__mantis11951.sql diff --git a/src/db/migration/V20181018_1042__mantis11951.sql b/src/db/migration/V20181018_1042__mantis11951.sql new file mode 100644 index 000000000..25bfb4acb --- /dev/null +++ b/src/db/migration/V20181018_1042__mantis11951.sql @@ -0,0 +1,14 @@ +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 >> POSICAO DE VENDA DO BILHETE IDOSO'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOPOSICAOVENDABILHETEIDOSO'', + 1, + CURRENT_DATE, + 1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181018_1051__mantis11951.sql b/src/db/postgresql/migration/V20181018_1051__mantis11951.sql new file mode 100644 index 000000000..b857cfb03 --- /dev/null +++ b/src/db/postgresql/migration/V20181018_1051__mantis11951.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 >> POSICAO DE VENDA DO BILHETE IDOSO', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOPOSICAOVENDABILHETEIDOSO', + 1, + now(), + 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file