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