Merge pull request 'bug#AL-2002' (#9) from AL-2002 into master

Reviewed-on: http://18.235.188.113:3000/utilidades/Flyway/pulls/9
Reviewed-by: wallace <wallace@rjconsultores.com.br>
Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>
master
fabio 2023-01-03 13:36:33 +00:00
commit ff541141d4
4 changed files with 16 additions and 8 deletions

View File

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

View File

@ -1,7 +0,0 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,15 @@
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 EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300)';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
end;