From ee2e0d0d3a76e9d3d81d7f51a90814856c127e7f Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Wed, 20 Mar 2024 20:02:51 -0300 Subject: [PATCH 1/2] bug#AL-4032 --- pom.xml | 2 +- src/db/backup/oracle/V20240320_2051__AL-4032.sql | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/db/backup/oracle/V20240320_2051__AL-4032.sql diff --git a/pom.xml b/pom.xml index 927fa54d7..2a1a10098 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.33.0 + 1.34.0 diff --git a/src/db/backup/oracle/V20240320_2051__AL-4032.sql b/src/db/backup/oracle/V20240320_2051__AL-4032.sql new file mode 100644 index 000000000..0c1abaa4a --- /dev/null +++ b/src/db/backup/oracle/V20240320_2051__AL-4032.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRESSAOAPOSCONFABERTO NUMBER(1))'; + exception when column_exists then null; +end; \ No newline at end of file From 704346992c71b8b197f84cef8d98bcecdcfc34b1 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Wed, 20 Mar 2024 20:09:51 -0300 Subject: [PATCH 2/2] bug#AL-4032 --- src/db/migration/V20240320_2051__AL-4032.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/db/migration/V20240320_2051__AL-4032.sql diff --git a/src/db/migration/V20240320_2051__AL-4032.sql b/src/db/migration/V20240320_2051__AL-4032.sql new file mode 100644 index 000000000..0c1abaa4a --- /dev/null +++ b/src/db/migration/V20240320_2051__AL-4032.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRESSAOAPOSCONFABERTO NUMBER(1))'; + exception when column_exists then null; +end; \ No newline at end of file