diff --git a/src/db/migration/V20210116_1515__mantis20989.sql b/src/db/migration/V20210116_1515__mantis20989.sql new file mode 100644 index 000000000..8f2d5a627 --- /dev/null +++ b/src/db/migration/V20210116_1515__mantis20989.sql @@ -0,0 +1,7 @@ +declare +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values +(FUNCION_SISTEMA_SEQ.NEXTVAL,1,''USUARIO RELATORIO GRATUIDADE AGER > MENU RELATORIO > ESTATISTICO > RELATORIO GRATUIDADE AGER'', ''USUARIO.RELATORIO.AGER'',1,SYSDATE,-1)'; + exception when others then null; +end; +/ \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210113_1517__mantis20989.sql b/src/db/postgresql/migration/V20210113_1517__mantis20989.sql new file mode 100644 index 000000000..33f332ff4 --- /dev/null +++ b/src/db/postgresql/migration/V20210113_1517__mantis20989.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,1,'USUARIO AGER > MENU RELATORIO > ESTATISTICO > GRATUIDADE AGER', 'USUARIO.RELATORIO.AGER',1,SYSDATE,-1); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;