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