From 978cbaf99699bed016e6d9873f43117ef70169b0 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Tue, 6 Aug 2024 13:13:57 -0300 Subject: [PATCH 1/2] fixes bug#AL-4691 --- .../backup/oracle/V20240806_1711__AL-4691.sql | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/db/backup/oracle/V20240806_1711__AL-4691.sql diff --git a/src/db/backup/oracle/V20240806_1711__AL-4691.sql b/src/db/backup/oracle/V20240806_1711__AL-4691.sql new file mode 100644 index 000000000..97e102352 --- /dev/null +++ b/src/db/backup/oracle/V20240806_1711__AL-4691.sql @@ -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; +/ \ No newline at end of file From 7d8af467c08b1b0d3ca2049fff38cdb036c2e7f9 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Tue, 6 Aug 2024 13:18:26 -0300 Subject: [PATCH 2/2] fixes bug#AL-4691 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d848a6160..57df680e2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.77.3 + 1.78.0