Fixes Bug #AL-4506

master
luis.espina 2024-09-06 16:40:06 -04:00
commit 72950a9744
9 changed files with 109 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId> <artifactId>Flyway</artifactId>
<version>1.91.0</version> <version>1.92.1</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

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

View File

@ -7,7 +7,7 @@ declare
pragma exception_init (except_01451 , -01451); pragma exception_init (except_01451 , -01451);
pragma exception_init (except_01442 , -01442); pragma exception_init (except_01442 , -01442);
begin begin
execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INDIMPRIMECUPOMVOUCHERCUSTOMIZADO NUMBER(1,0))'; execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INDIMPRCUPOMVOUCHERCUSTOMIZADO NUMBER(1,0))';
exception exception
when object_exists then null; when object_exists then null;
when except_01451 then null; when except_01451 then null;

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;