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/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