From 5130d6bbd01cc6af898a5715b164b0dac2e85271 Mon Sep 17 00:00:00 2001 From: "gleison.cruz" Date: Mon, 6 May 2024 16:00:18 -0300 Subject: [PATCH] fixes bug#AL-4236 --- pom.xml | 2 +- src/db/migration/V20240506_1526__AL-4236.sql | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240506_1526__AL-4236.sql diff --git a/pom.xml b/pom.xml index c9230e87b..e4293aa42 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.40.0 + 1.40.1 diff --git a/src/db/migration/V20240506_1526__AL-4236.sql b/src/db/migration/V20240506_1526__AL-4236.sql new file mode 100644 index 000000000..845cfed82 --- /dev/null +++ b/src/db/migration/V20240506_1526__AL-4236.sql @@ -0,0 +1,16 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE LOG_AUDITORIA MODIFY VALOR_NOVO VARCHAR2(1000)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE LOG_AUDITORIA MODIFY VALOR_ANTERIOR VARCHAR2(1000)'; + exception when column_exists then null; +end; +/ \ No newline at end of file