Merge pull request 'fixes bug#AL-3022' (!71) from AL-3200 into master

Reviewed-on: utilidades/Flyway#71
Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>
master
Gleison da Cruz 2023-10-20 19:48:11 +00:00
commit 4ad81c1902
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId>
<version>1.14.0</version>
<version>1.14.1</version>
<distributionManagement>
<repository>

View File

@ -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;