diff --git a/src/db/migration/V20240725_1321__AL-4655.sql b/src/db/migration/V20240725_1321__AL-4655.sql new file mode 100644 index 000000000..507b3858a --- /dev/null +++ b/src/db/migration/V20240725_1321__AL-4655.sql @@ -0,0 +1,13 @@ +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,1,''ADM > CATALOGO > TIPODOCUMENTO'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.TIPODOCUMENTO'',1,SYSDATE,-1)'; + 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/migration/V20240812_1600__AL-4655.sql b/src/db/migration/V20240812_1600__AL-4655.sql new file mode 100644 index 000000000..d4f041b98 --- /dev/null +++ b/src/db/migration/V20240812_1600__AL-4655.sql @@ -0,0 +1,37 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE TIPO_IDENTIFICACION ADD INDEXIBECONFIRMACAOTOTALBUS NUMBER(1,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE "TIPO_IDENTIFICACION_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ +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 'UPDATE TIPO_IDENTIFICACION SET INDEXIBECONFIRMACAOTOTALBUS = 1'; + 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/migration/V20240814_1155__AL-4781.sql b/src/db/migration/V20240814_1155__AL-4781.sql new file mode 100644 index 000000000..e2160732f --- /dev/null +++ b/src/db/migration/V20240814_1155__AL-4781.sql @@ -0,0 +1,101 @@ +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, 1, ''ADM > Expresso'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ + +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, 1, ''ADM > Expresso > Expresso a ser cotado'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.EXPRESSOASERCOTADO'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ + +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, 1, ''ADM > Expresso > Taxa de contrato'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.TAXADECONTRATO'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ + + +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, 1, ''ADM > Expresso > Programação de veículos'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.PROGRAMACAODEVEICULOS'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ + +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, 1, ''ADM > Expresso > Documentos'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.DOCUMENTOS'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; +/ + +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, 1, ''ADM > Expresso > Conformidade de serviço'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.CONFORMIDADEDESERVICO'', 1, + SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end;