fixes bug#AL-2686

master
aristides@rjconsultores.com.br 2023-06-23 19:28:11 -03:00
parent 6a4fdfb065
commit 608e9c73ff
3 changed files with 47 additions and 1 deletions

View File

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

View File

@ -0,0 +1,20 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA add INDENVIAEXCESSODEBAGAGEMSEFAZ NUMBER(1,0)';
exception when column_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_EVENTO_EXTRA SET INDENVIAEXCESSODEBAGAGEMSEFAZ=1 WHERE CVETIPOEVENTO=''EXCESSO_BAGAGEM'' AND INDENVIAEXCESSODEBAGAGEMSEFAZ IS NULL';
exception when others then null;
end;
/

View File

@ -0,0 +1,26 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE orgao_emp_param add INDICEEXCESSODEPAGAGEM NUMBER(7,2)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE orgao_emp_param add PESOEXCESSODEBAGAGEMFRANQUIA NUMBER(7,0)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE orgao_emp_param add PESOEXTRAEXCESSODEBAGAGEM NUMBER(7,0)';
exception when column_exists then null;
end;
/