From 0e9c290834d64a7bbd8edf511a23d9761add6e0b Mon Sep 17 00:00:00 2001 From: walace Date: Wed, 16 Oct 2019 14:50:33 +0000 Subject: [PATCH] fixes bug#16540 qua:juliane dev:lucas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inserido no banco de dados, as funções sistemas para alguns menu-itens da venda embarcada git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98285 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20191016_1015__mantis16540.sql | 17 +++++++++++++++++ .../migration/V20191016_116__mantis16540.sql | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/db/migration/V20191016_1015__mantis16540.sql create mode 100644 src/db/postgresql/migration/V20191016_116__mantis16540.sql diff --git a/src/db/migration/V20191016_1015__mantis16540.sql b/src/db/migration/V20191016_1015__mantis16540.sql new file mode 100644 index 000000000..92a8e01eb --- /dev/null +++ b/src/db/migration/V20191016_1015__mantis16540.sql @@ -0,0 +1,17 @@ +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,''VENDA EMBARCADA > MENU EMBARCADA > VENDA MANUAL EMBARCADA'', ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUVENTAMANUALEMBARCADA'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; +/ +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,''VENDA EMBARCADA > MENU EMBARCADA'', ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.MENUEMBARCADA'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191016_116__mantis16540.sql b/src/db/postgresql/migration/V20191016_116__mantis16540.sql new file mode 100644 index 000000000..bdd269a85 --- /dev/null +++ b/src/db/postgresql/migration/V20191016_116__mantis16540.sql @@ -0,0 +1,13 @@ +DO $$ +BEGIN +insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values +(FUNCION_SISTEMA_SEQ.NEXTVAL,2,''VENDA EMBARCADA > MENU EMBARCADA > VENDA MANUAL EMBARCADA'', ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUVENTAMANUALEMBARCADA'',1,SYSDATE,-1); +END +$$; +/ +DO $$ +BEGIN +insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values +(FUNCION_SISTEMA_SEQ.NEXTVAL,2,''VENDA EMBARCADA > MENU EMBARCADA'', ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.MENUEMBARCADA'',1,SYSDATE,-1); +END +$$; \ No newline at end of file