Merge pull request 'Modificacion a tabla parametros de recolecion AL-4505' (!190) from AL-4505 into master

Reviewed-on: utilidades/Flyway#190
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
master
luis.espina 2024-09-05 21:58:22 +00:00
commit ec98418264
6 changed files with 60 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;