diff --git a/pom.xml b/pom.xml index 6b81dfe4c..aedfe23f1 100644 --- a/pom.xml +++ b/pom.xml @@ -1,83 +1,83 @@ - - 4.0.0 - br.com.rjconsultores - Flyway - 1.56.0 - - - - 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.57.0 + + + + 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/V20240614_1757__AL-4281.sql b/src/db/migration/V20240614_1757__AL-4281.sql new file mode 100644 index 000000000..8a5ef9888 --- /dev/null +++ b/src/db/migration/V20240614_1757__AL-4281.sql @@ -0,0 +1,15 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, + VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) + values (CONSTANTE_SEQ.NEXTVAL,''NUM_ASIENTO_CON_LETRA'',''NUM_ASIENTO_CON_LETRA'', + null,0,null,''1'',sysdate,''1'')'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file