From d4f9dca5c52020dbfa7f831bf7d7fe9fcbda3c23 Mon Sep 17 00:00:00 2001 From: "gleison.cruz" Date: Fri, 20 Oct 2023 16:43:03 -0300 Subject: [PATCH] fixes bug#AL-3022 --- pom.xml | 2 +- src/db/postgresql/migration/V20231020_1509__AL-3200.sql | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/db/postgresql/migration/V20231020_1509__AL-3200.sql diff --git a/pom.xml b/pom.xml index dec71e91b..f745c5130 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.14.0 + 1.14.1 diff --git a/src/db/postgresql/migration/V20231020_1509__AL-3200.sql b/src/db/postgresql/migration/V20231020_1509__AL-3200.sql new file mode 100644 index 000000000..6ad228bb9 --- /dev/null +++ b/src/db/postgresql/migration/V20231020_1509__AL-3200.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (CONSTANTE_SEQ.nextval, ''CONSTANTE_CANT_MIN_CARACTER_OITO'', ''CONSTANTE_CANT_MIN_CARACTER_OITO'', ''False'', ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file