Merge pull request 'fixes bug#AL-4691' (!164) from AL-4691 into master

Reviewed-on: utilidades/Flyway#164
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
Reviewed-by: Célio de Souza Ribeiro JR <celio@rjconsultores.com.br>
master
wallace 2024-08-06 16:19:46 +00:00
commit 68db6ede3a
2 changed files with 49 additions and 1 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.77.3</version> <version>1.78.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -0,0 +1,48 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE ALIAS_CLASSE_SERVICO ADD (CLASSE_CONFORTO_MONITRIP VARCHAR2(30))';
exception when column_exists 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 ALIAS_CLASSE_SERVICO ADD EMPRESA_ID NUMBER(7,0) ';
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 ALIAS_CLASSE_SERVICO ADD RUTA_ID NUMBER(7,0) ';
exception
when object_exists then null;
when except_01451 then null;
when except_01442 then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE ALIAS_CLASSE_SERVICO ADD INDSOMENTEIMPRESSAO NUMBER(1,0)';
exception when column_exists then null;
end;
/