From cbd8a140e9ba09bda157c44d2690d9341a00d4f4 Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 6 Sep 2024 09:46:05 -0300 Subject: [PATCH] campos de validade no contrato feat bug#AL-4785 --- pom.xml | 2 +- src/db/migration/V20240814_1614__AL-4785.sql | 47 ++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240814_1614__AL-4785.sql diff --git a/pom.xml b/pom.xml index d44155be9..3f2c7c4bf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.91.0 + 1.92.0 diff --git a/src/db/migration/V20240814_1614__AL-4785.sql b/src/db/migration/V20240814_1614__AL-4785.sql new file mode 100644 index 000000000..6fdcae47e --- /dev/null +++ b/src/db/migration/V20240814_1614__AL-4785.sql @@ -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;