Merge pull request 'Se agrega constante de link de aceptación de cotización de expreso' (!216) from AL-4550 into master

Reviewed-on: utilidades/Flyway#216
Reviewed-by: wallace <wallace@rjconsultores.com.br>
master
fernando.mx 2024-10-16 19:54:35 +00:00
commit 090950672c
2 changed files with 32 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.100.0</version> <version>1.100.1</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -0,0 +1,31 @@
-- INSERT / UPDATE
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,
''LINK_ACEPTAR_COTIZACION_EXPRESO'',
''Link que se enviará en cuerpo de correo electrónico para aceptar cotización de Expreso.'',
null,
''www.teste.com.br'',
null,
''1'',
sysdate,''1'')';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;