add config constante = NAO_VALIDA_ESQUEMA_CORRIDA_VIA

master
Julio Heredia 2023-10-24 18:10:06 -03:00
parent 4ad81c1902
commit 296119a3eb
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId> <artifactId>Flyway</artifactId>
<version>1.14.1</version> <version>1.15.0</version>
<distributionManagement> <distributionManagement>
<repository> <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, ''NAO_VALIDA_ESQUEMA_CORRIDA_VIA'', ''NAO VALIDA NA EDICAO DO ESQUEMA CORRIDA A VIA DOS TRECHOS DO DOUBLEDECK'', ''FALSE'', ''1'', ''1'', ''1'', sysdate, ''1'')';
exception when dup_val_on_index then null;
end;