Merge branch 'master' into AL-4928

master
luis.espina 2024-10-22 15:02:16 -04:00
commit 45b3e81231
5 changed files with 71 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.99.0</version>
<version>1.102.0</version>
<distributionManagement>
<repository>

View File

@ -0,0 +1,14 @@
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 FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
VALUES (FUNCION_SISTEMA_SEQ.nextval,''1'',''ADM > RELATORIOS> CETURB > MOVIMENTO MENSAL PASSAGEIRO'',
''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.MOVIMENTOMENSALPASSAGEIROCETURB'',''1'',null,''2'')';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE REVENUE_CONFIG ADD URL_GEOLOC VARCHAR(200)';
exception when column_exists then null;
end;

View File

@ -0,0 +1,18 @@
declare
object_exists exception;
except_02275 exception;
except_02270 exception;
except_02261 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_02275 , -02275);
pragma exception_init (except_02270 , -02270);
pragma exception_init (except_02261 , -02261);
begin
execute immediate 'ALTER TABLE EMPRESA ADD INDIMPRIMECONFABERTONBPE NUMBER(1,0)';
exception
when object_exists then null;
when except_02275 then null;
when except_02270 then null;
when except_02261 then null;
end;

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;