diff --git a/src/db/migration/V20180806_0944__mantis11731.sql b/src/db/migration/V20180806_0944__mantis11731.sql new file mode 100644 index 000000000..1f77eff2f --- /dev/null +++ b/src/db/migration/V20180806_0944__mantis11731.sql @@ -0,0 +1,14 @@ +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 >> HISTORICO COMPRAS'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOHISTORICOCOMPRAS'', + 1, + TO_DATE(''06/08/18'',''DD/MM/RR''), + 1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180806_1629__mantis11602.sql b/src/db/postgresql/migration/V20180806_1629__mantis11602.sql new file mode 100644 index 000000000..2635a73f7 --- /dev/null +++ b/src/db/postgresql/migration/V20180806_1629__mantis11602.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_IMPRESORA ADD INDARCHIVOLAYOUTINTERNACIONAL NUMBER(1,0) DEFAULT 0; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180806_1633__mantis11731.sql b/src/db/postgresql/migration/V20180806_1633__mantis11731.sql new file mode 100644 index 000000000..a1018731b --- /dev/null +++ b/src/db/postgresql/migration/V20180806_1633__mantis11731.sql @@ -0,0 +1,15 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id, sistema_id, nombfuncion, descruta, activo, fecmodif, usuario_id) + values ( + nextval('funcion_sistema_seq'), + 1, + 'ADM > RELATORIOS >> HISTORICO COMPRAS', + 'COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOHISTORICOCOMPRAS', + 1, + now(), + 1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file