Merge pull request 'fixes bug#AL-3524' (!79) from AL-3524 into master

Reviewed-on: utilidades/Flyway#79
Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>
master
wallace 2023-11-21 14:08:20 +00:00
commit 95b1a616b1
4 changed files with 20 additions and 13 deletions

View File

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

View File

@ -1,7 +0,0 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0)' ;
exception when column_exists then null;
end;

View File

@ -0,0 +1,19 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ;
exception when column_exists then null;
end;
/
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA RENAME COLUMN INDTAXACONVENIENCIAORGAOCONCEDENTE TO INDTAXACONVORGAOCONCEDENTE';
exception
when object_exists then null;
when except_00957 then null;
end;

View File

@ -1,5 +0,0 @@
DO $$
BEGIN
ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0);
END
$$;