diff --git a/src/db/migration/V20200212_1510__mantis18256.sql b/src/db/migration/V20200212_1510__mantis18256.sql new file mode 100644 index 000000000..632469348 --- /dev/null +++ b/src/db/migration/V20200212_1510__mantis18256.sql @@ -0,0 +1,6 @@ +declare +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values +(FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > SEGURANCA > EXTRAIR BP-e XML'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.EXTRAIRBPEXML'',1,SYSDATE,-1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200212_1510__mantis18256.sql b/src/db/postgresql/migration/V20200212_1510__mantis18256.sql new file mode 100644 index 000000000..4afd7fe0b --- /dev/null +++ b/src/db/postgresql/migration/V20200212_1510__mantis18256.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'),1,'ADM > SEGURANCA > EXTRAIR BP-e XML','COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.EXTRAIRBPEXML',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;