diff --git a/src/db/migration/V20180820_1654__mantis10749.sql b/src/db/migration/V20180820_1654__mantis10749.sql new file mode 100644 index 000000000..6fd37da9d --- /dev/null +++ b/src/db/migration/V20180820_1654__mantis10749.sql @@ -0,0 +1,10 @@ +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, 1, ''ADM > RELATORIOS > INTEGRACAO > SGTI'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ANALITICO.SGTI'', 1, CURRENT_DATE, 1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180820_1654__mantis10749.sql b/src/db/postgresql/migration/V20180820_1654__mantis10749.sql new file mode 100644 index 000000000..740344730 --- /dev/null +++ b/src/db/postgresql/migration/V20180820_1654__mantis10749.sql @@ -0,0 +1,10 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id, sistema_id, nombfuncion, descruta, activo, fecmodif, usuario_id) + values ( + nextval('funcion_sistema_seq'), 1, 'ADM > RELATORIOS > INTEGRACAO > SGTI', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.ANALITICO.SGTI', 1, now(), 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file