From 06bcb67a0ac33dc76754da743640735dcdf64039 Mon Sep 17 00:00:00 2001 From: valdevir Date: Thu, 12 Sep 2024 14:27:25 -0300 Subject: [PATCH] fixes bug AL-4506. Tratamento para nao ocasionar excecao da trigger before do totalbus --- pom.xml | 162 +++++++++---------- src/db/migration/V20240902_1157__AL-4505.sql | 20 ++- src/db/migration/V20240902_1201__AL-4505.sql | 20 ++- 3 files changed, 109 insertions(+), 93 deletions(-) diff --git a/pom.xml b/pom.xml index dd9368cd3..08030b728 100644 --- a/pom.xml +++ b/pom.xml @@ -1,82 +1,82 @@ - - 4.0.0 - br.com.rjconsultores - Flyway - 1.92.2 - - - - rj-releases - http://52.5.53.15:8081/nexus/content/repositories/releases/ - - - - - UTF-8 - UTF-8 - - - - src - - - - ${basedir}/src - - *.* - db/** - - - - - - - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.flywaydb - flyway-maven-plugin - 3.2.1 - - true - - - - ${project.artifactId} - - - - - org.apache.logging.log4j - log4j-core - 2.17.1 - - - - org.flywaydb - flyway-core - 4.2.0 - - - - javax.servlet - javax.servlet-api - 4.0.0 - provided - - - - com.oracle.database.jdbc - ojdbc8 - 21.7.0.0 - - - + + 4.0.0 + br.com.rjconsultores + Flyway + 1.92.3 + + + + rj-releases + http://52.5.53.15:8081/nexus/content/repositories/releases/ + + + + + UTF-8 + UTF-8 + + + + src + + + + ${basedir}/src + + *.* + db/** + + + + + + + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.flywaydb + flyway-maven-plugin + 3.2.1 + + true + + + + ${project.artifactId} + + + + + org.apache.logging.log4j + log4j-core + 2.17.1 + + + + org.flywaydb + flyway-core + 4.2.0 + + + + javax.servlet + javax.servlet-api + 4.0.0 + provided + + + + com.oracle.database.jdbc + ojdbc8 + 21.7.0.0 + + + \ No newline at end of file diff --git a/src/db/migration/V20240902_1157__AL-4505.sql b/src/db/migration/V20240902_1157__AL-4505.sql index 1dda5f504..5c254f2ee 100644 --- a/src/db/migration/V20240902_1157__AL-4505.sql +++ b/src/db/migration/V20240902_1157__AL-4505.sql @@ -1,7 +1,15 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); -begin - execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEADICIONAL NUMBER(10,2))'; - exception when column_exists then null; +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.''; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEADICIONAL NUMBER(10,2))'; + exception when column_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1201__AL-4505.sql b/src/db/migration/V20240902_1201__AL-4505.sql index 5b28c6b15..ffa5291d5 100644 --- a/src/db/migration/V20240902_1201__AL-4505.sql +++ b/src/db/migration/V20240902_1201__AL-4505.sql @@ -1,7 +1,15 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); -begin - execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEBASE NUMBER(10,2))'; - exception when column_exists then null; +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.''; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01451); +begin + execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEBASE NUMBER(10,2))'; + exception when column_exists then null; end; \ No newline at end of file