diff --git a/src/db/migration/V20190228_1000__mantis13714.sql b/src/db/migration/V20190228_1000__mantis13714.sql new file mode 100644 index 000000000..5b96e0fd3 --- /dev/null +++ b/src/db/migration/V20190228_1000__mantis13714.sql @@ -0,0 +1,7 @@ +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,''RELATORIOS > RELATORIOS OPERACIONAIS > EMBARQUE LOCALIDADE'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOEMBARQUELOCALIDADE'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190228_1004__mantis13714.sql b/src/db/postgresql/migration/V20190228_1004__mantis13714.sql new file mode 100644 index 000000000..fbdb561ce --- /dev/null +++ b/src/db/postgresql/migration/V20190228_1004__mantis13714.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,'RELATORIOS > RELATORIOS OPERACIONAIS > EMBARQUE LOCALIDADE', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOEMBARQUELOCALIDADE',1,sysdate,1); +EXCEPTION WHEN unique_violation THEN NULL; +END +$$;