diff --git a/pom.xml b/pom.xml index d44155be9..610292fe3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.91.0 + 1.92.1 diff --git a/src/db/migration/V20240705_1528__AL-4454.sql b/src/db/migration/V20240705_1528__AL-4454.sql new file mode 100644 index 000000000..1ea14ed31 --- /dev/null +++ b/src/db/migration/V20240705_1528__AL-4454.sql @@ -0,0 +1,9 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE redondeo MODIFY valorinicial NUMBER(7, 2)'; + execute immediate 'ALTER TABLE redondeo MODIFY valorfinal NUMBER(7, 2)'; + execute immediate 'ALTER TABLE redondeo MODIFY valorredondeo NUMBER(7, 2)'; + exception when column_exists then null; +end; diff --git a/src/db/migration/V20240705_1550__AL-4454.sql b/src/db/migration/V20240705_1550__AL-4454.sql new file mode 100644 index 000000000..9ee9a20a0 --- /dev/null +++ b/src/db/migration/V20240705_1550__AL-4454.sql @@ -0,0 +1,15 @@ +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 CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, INDTIPOCONSTANTE, + VALORCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.NEXTVAL, ''CONFIG_ARREDONDAMENTO_CENTENAS'', ''CONFIG DE ARREDONDAMENTO CENTENAS'', + null, ''false'', null, ''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/V20240705_1602__AL-4454.sql b/src/db/migration/V20240705_1602__AL-4454.sql new file mode 100644 index 000000000..4fa9d818a --- /dev/null +++ b/src/db/migration/V20240705_1602__AL-4454.sql @@ -0,0 +1,15 @@ +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 CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, + VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) + values (CONSTANTE_SEQ.NEXTVAL,''TEMPO_LIMPEZA_CACHE_REDONDEO'',''TEMPO LIMPEZA CACHE REDONDEO'', + null,null,null,''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/V20240814_1614__AL-4785.sql b/src/db/migration/V20240814_1614__AL-4785.sql new file mode 100644 index 000000000..6fdcae47e --- /dev/null +++ b/src/db/migration/V20240814_1614__AL-4785.sql @@ -0,0 +1,47 @@ +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 CONTRATO_CORPORATIVO ADD "VALIDADE_VOUCHER" NUMBER(7)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ +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 CONTRATO_CORPORATIVO ADD "VALIDADE_EXPRESSO" NUMBER(7)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ +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 CONTRATO_CORPORATIVO ADD "VALIDADE_ABERTO" NUMBER(7)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; diff --git a/src/db/migration/V20240902_1040__AL-4421.sql b/src/db/migration/V20240902_1040__AL-4421.sql index 200cb0c65..36e33df80 100644 --- a/src/db/migration/V20240902_1040__AL-4421.sql +++ b/src/db/migration/V20240902_1040__AL-4421.sql @@ -7,7 +7,7 @@ declare pragma exception_init (except_01451 , -01451); pragma exception_init (except_01442 , -01442); begin - execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INDIMPRIMECUPOMVOUCHERCUSTOMIZADO NUMBER(1,0))'; + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INDIMPRCUPOMVOUCHERCUSTOMIZADO NUMBER(1,0))'; exception when object_exists then null; when except_01451 then null; diff --git a/src/db/migration/V20240902_1157__AL-4505.sql b/src/db/migration/V20240902_1157__AL-4505.sql new file mode 100644 index 000000000..1dda5f504 --- /dev/null +++ b/src/db/migration/V20240902_1157__AL-4505.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEADICIONAL NUMBER(10,2))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1159__AL-4505.sql b/src/db/migration/V20240902_1159__AL-4505.sql new file mode 100644 index 000000000..ebde707ff --- /dev/null +++ b/src/db/migration/V20240902_1159__AL-4505.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEINICIAL NUMBER(10,2))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1201__AL-4505.sql b/src/db/migration/V20240902_1201__AL-4505.sql new file mode 100644 index 000000000..5b28c6b15 --- /dev/null +++ b/src/db/migration/V20240902_1201__AL-4505.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEBASE NUMBER(10,2))'; + exception when column_exists then null; +end; \ No newline at end of file