diff --git a/src/db/migration/V20200211_1124__mantis16537.sql b/src/db/migration/V20200211_1124__mantis16537.sql new file mode 100644 index 000000000..1dddb9169 --- /dev/null +++ b/src/db/migration/V20200211_1124__mantis16537.sql @@ -0,0 +1,14 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + values (FUNCION_SISTEMA_SEQ.nextVal ,''2'',''ADM > ESQUEMA_OPERACIONAL > RELATORIO_ESTORNO_TROCO_SIMPLES'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.RELATORIOESTORNOTROCOSIMPLES'',''1'',to_date(''11/02/20'',''DD/MM/RR''),null)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200211_1124__mantis16537.sql b/src/db/postgresql/migration/V20200211_1124__mantis16537.sql new file mode 100644 index 000000000..5f04f381b --- /dev/null +++ b/src/db/postgresql/migration/V20200211_1124__mantis16537.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 ,'2','ADM > ESQUEMA_OPERACIONAL > RELATORIO_ESTORNO_TROCO_SIMPLES', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.RELATORIOESTORNOTROCOSIMPLES','1',to_date('11/02/20','DD/MM/RR'),null); +END +$$; \ No newline at end of file