diff --git a/pom.xml b/pom.xml index 35658f48c..899db00d7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.99.0 + 1.102.0 diff --git a/src/db/backup/oracle/V20241017_1535__AL-4327.sql b/src/db/backup/oracle/V20241017_1535__AL-4327.sql new file mode 100644 index 000000000..9ea981efd --- /dev/null +++ b/src/db/backup/oracle/V20241017_1535__AL-4327.sql @@ -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; \ No newline at end of file diff --git a/src/db/migration/V20241008_1520__AL-5017.sql b/src/db/migration/V20241008_1520__AL-5017.sql new file mode 100644 index 000000000..9cf3b821b --- /dev/null +++ b/src/db/migration/V20241008_1520__AL-5017.sql @@ -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; diff --git a/src/db/migration/V20241016_0900__AL-5111.sql b/src/db/migration/V20241016_0900__AL-5111.sql new file mode 100644 index 000000000..9bdc6cc2d --- /dev/null +++ b/src/db/migration/V20241016_0900__AL-5111.sql @@ -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; \ No newline at end of file diff --git a/src/db/migration/V20241016_1249__AL-4550.sql b/src/db/migration/V20241016_1249__AL-4550.sql new file mode 100644 index 000000000..e77025cfc --- /dev/null +++ b/src/db/migration/V20241016_1249__AL-4550.sql @@ -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; \ No newline at end of file