Merge pull request 'campos de validade no contrato feat bug#AL-4785' (!194) from AL-4785 into master

Reviewed-on: utilidades/Flyway#194
Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br>
master
fabio 2024-09-06 13:03:26 +00:00
commit 8fdc7a87a9
2 changed files with 48 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.91.0</version> <version>1.92.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

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;