diff --git a/pom.xml b/pom.xml
index 2037a12ce..9434e6da7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,8 +3,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
br.com.rjconsultores
- Flyway
- 1.78.1
+ Flyway
+ 1.81.0
diff --git a/src/db/backup/oracle/V20240808_1749__AL-4214.sql b/src/db/backup/oracle/V20240808_1749__AL-4214.sql
new file mode 100644
index 000000000..dceb2aecb
--- /dev/null
+++ b/src/db/backup/oracle/V20240808_1749__AL-4214.sql
@@ -0,0 +1,46 @@
+declare
+ object_exists exception;
+ except_01451 exception;
+ except_01442 exception;
+
+ pragma exception_init (object_exists , -01430);
+ pragma exception_init (except_01451 , -01451);
+ pragma exception_init (except_01442 , -01442);
+begin
+ execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD (INDQUANTVIASIMPRIMIR NUMBER(1))';
+ exception
+ when object_exists then null;
+ when except_01451 then null;
+ when except_01442 then null;
+end;
+/
+
+
+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 'UPDATE TIPO_EVENTO_EXTRA SET INDQUANTVIASIMPRIMIR = 1 WHERE INDQUANTVIASIMPRIMIR IS NULL';
+ exception
+ when dup_val_on_index then null;
+ when except_02291 then null;
+end;
+/
+
+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
+ 'UPDATE tipo_evento_extra SET indquantviasimprimir = 2 WHERE desctipoevento IN (''VALE COBRADOR'', ''SANGRIA'') AND (INDQUANTVIASIMPRIMIR IS NULL OR INDQUANTVIASIMPRIMIR =1)';
+ 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/V20240713_1144__AL-4397.sql b/src/db/migration/V20240713_1144__AL-4397.sql
new file mode 100644
index 000000000..1d9cca2d7
--- /dev/null
+++ b/src/db/migration/V20240713_1144__AL-4397.sql
@@ -0,0 +1,38 @@
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate 'CREATE TABLE EMPRESA_IZIPAY_CONFIG (
+ EMPRESAIZIPAY_ID NUMBER(7, 0) PRIMARY KEY ,
+ EMPRESA_ID NUMBER(7, 0),
+ CLIENT_ID VARCHAR2(50 BYTE),
+ SECRET VARCHAR2(50 BYTE),
+ DIAS_CANCELA NUMBER(7,0),
+ URL VARCHAR2(50 BYTE),
+ ACTIVO NUMBER(1,0),
+ FECMODIF DATE,
+ USUARIO_ID NUMBER(7,0),
+ CONSTRAINT fk_usuario_empresa_izipay FOREIGN KEY (USUARIO_ID) REFERENCES USUARIO(USUARIO_ID)
+ )';
+
+ exception when object_exists then null;
+end;
+/
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate
+ 'CREATE SEQUENCE EMP_IZIPAY_CONFIG_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
+ exception when object_exists then null;
+end;
+/
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate
+ 'CREATE SEQUENCE REFERENCIA_IZIPAY_SEQ MINVALUE 1 MAXVALUE 999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
+ exception when object_exists then null;
+end;
+
diff --git a/src/db/migration/V20240729_1500__AL-4549.sql b/src/db/migration/V20240729_1500__AL-4549.sql
index b47ea9b07..11d3576ee 100644
--- a/src/db/migration/V20240729_1500__AL-4549.sql
+++ b/src/db/migration/V20240729_1500__AL-4549.sql
@@ -29,42 +29,16 @@ begin
"INDREQUIERERECORRIDOSINTERNOS" NUMBER(1,0),
"STATUSSOLICITUDEXPRESO_ID" NUMBER(2,0),
"DOCCOTIZACION" BLOB,
- "VALORCOTIZACION" NUMBER(15,2),
+ "VALORCOTIZACION" NUMBER(15,2),
"ACTIVO" NUMBER(1,0),
"FECMODIF" DATE,
"USUARIO_ID" NUMBER(7,0),
"DOCCONTRATO" BLOB,
- "ORMAPAGO_ID" NUMBER (7),
+ "FORMAPAGO_ID" NUMBER (7),
"USUARIOAUTORIZACREDITO" NUMBER (7),
- "FECHORAUTORIZACREDITO" DATE
+ "FECHORAUTORIZACREDITO" DATE,
+ "DOCLISTAPASAJEROS" BLOB,
+ "DOCCUMPLIMIENTOSERVICIO" BLOB
)';
- exception when object_exists then null;
-end;
-
-begin
- execute immediate
- 'CREATE SEQUENCE "SOLICITUD_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
- exception when object_exists then null;
-end;
-
-begin
- execute immediate
- 'ALTER TABLE "SOLICITUD_EXPRESO"
- ADD FOREIGN KEY ("CIUDADORIGEN_ID")
- REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
- exception when object_exists then null;
-end;
-begin
- execute immediate
- 'ALTER TABLE "SOLICITUD_EXPRESO"
- ADD FOREIGN KEY ("CIUDADDESTINO_ID")
- REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
- exception when object_exists then null;
-end;
-begin
- execute immediate
- 'ALTER TABLE "SOLICITUD_EXPRESO"
- ADD FOREIGN KEY ("TIPOIDENTIFICACION_ID")
- REFERENCES "TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE';
- exception when object_exists then null;
+ exception when object_exists then null;
end;
\ No newline at end of file
diff --git a/src/db/migration/V20240802_1345__AL-4549.sql b/src/db/migration/V20240802_1345__AL-4549.sql
index d785397a9..716b86cbc 100644
--- a/src/db/migration/V20240802_1345__AL-4549.sql
+++ b/src/db/migration/V20240802_1345__AL-4549.sql
@@ -16,21 +16,4 @@ begin
"DOCFLUEC" BLOB
)';
exception when object_exists then null;
-end;
-/
-declare
- object_exists exception;
- pragma exception_init (object_exists , -00955);
-begin
- execute immediate
- 'CREATE SEQUENCE "TRAYECTOS_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
- exception when object_exists then null;
-end;
-
-begin
- execute immediate
- 'ALTER TABLE "TRAYECTOS_EXPRESOS"
- ADD FOREIGN KEY ("SOLICITUDEXPRESO_ID")
- REFERENCES "SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE';
- exception when object_exists then null;
end;
\ No newline at end of file
diff --git a/src/db/migration/V20240802_1421__AL-4549.sql b/src/db/migration/V20240802_1421__AL-4549.sql
index 06a98b178..042219368 100644
--- a/src/db/migration/V20240802_1421__AL-4549.sql
+++ b/src/db/migration/V20240802_1421__AL-4549.sql
@@ -1,29 +1,23 @@
declare
- object_exists exception;
- pragma exception_init (object_exists , -00955);
+ 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 (
+ 'insert into CONSTANTE values (
CONSTANTE_SEQ.NEXTVAL,
- "FORMAPAGOCREDITO_ID",
- "ID de Pago a Crédito Expresos",
- null,
- "2",
- null,
- "1",
+ ''FORMAPAGOCREDITO_ID'',
+ ''ID de Pago a Crédito Expresos'',
+ 1,
+ ''2'',
+ 1,
+ 1,
sysdate,
- "1"
-);';
- exception when object_exists then null;
+ 1
+)';
+ 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/V20240812_1700__AL-4553.sql b/src/db/migration/V20240812_1700__AL-4553.sql
new file mode 100644
index 000000000..04a56b027
--- /dev/null
+++ b/src/db/migration/V20240812_1700__AL-4553.sql
@@ -0,0 +1,15 @@
+declare
+ object_exists exception;
+ except_01451 exception;
+ except_01442 exception;
+
+ pragma exception_init (object_exists , -01430);
+ pragma exception_init (except_01451 , -01451);
+ pragma exception_init (except_01442 , -01442);
+begin
+ execute immediate 'ALTER TABLE SOLICITUD_EXPRESO ADD (DOCCUMPLIMIENTOSERVICIO BLOB)';
+ exception
+ when object_exists then null;
+ when except_01451 then null;
+ when except_01442 then null;
+end;
\ No newline at end of file
diff --git a/src/db/migration/V20240813_0922__AL-4549.sql b/src/db/migration/V20240813_0922__AL-4549.sql
new file mode 100644
index 000000000..6bffdeb69
--- /dev/null
+++ b/src/db/migration/V20240813_0922__AL-4549.sql
@@ -0,0 +1,8 @@
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate
+ 'CREATE SEQUENCE "SOLICITUD_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
+ exception when object_exists then null;
+end;
\ No newline at end of file
diff --git a/src/db/migration/V20240813_0924__AL-4549.sql b/src/db/migration/V20240813_0924__AL-4549.sql
new file mode 100644
index 000000000..f46897a8d
--- /dev/null
+++ b/src/db/migration/V20240813_0924__AL-4549.sql
@@ -0,0 +1,21 @@
+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 "SOLICITUD_EXPRESO"
+ ADD FOREIGN KEY ("CIUDADORIGEN_ID")
+ REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
+ 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/V20240813_0926__AL-4549.sql b/src/db/migration/V20240813_0926__AL-4549.sql
new file mode 100644
index 000000000..83743e9f1
--- /dev/null
+++ b/src/db/migration/V20240813_0926__AL-4549.sql
@@ -0,0 +1,21 @@
+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 "SOLICITUD_EXPRESO"
+ ADD FOREIGN KEY ("CIUDADDESTINO_ID")
+ REFERENCES "CIUDAD" ("CIUDAD_ID") ENABLE';
+ 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/V20240813_0928__AL-4549.sql b/src/db/migration/V20240813_0928__AL-4549.sql
new file mode 100644
index 000000000..4c86844bc
--- /dev/null
+++ b/src/db/migration/V20240813_0928__AL-4549.sql
@@ -0,0 +1,21 @@
+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 "SOLICITUD_EXPRESO"
+ ADD FOREIGN KEY ("TIPOIDENTIFICACION_ID")
+ REFERENCES "TIPO_IDENTIFICACION" ("TIPOIDENTIFICACION_ID") ENABLE';
+ 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/V20240813_0931__AL-4549.sql b/src/db/migration/V20240813_0931__AL-4549.sql
new file mode 100644
index 000000000..2d0a7454c
--- /dev/null
+++ b/src/db/migration/V20240813_0931__AL-4549.sql
@@ -0,0 +1,8 @@
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate
+ 'CREATE SEQUENCE "TRAYECTOS_EXPRESO_SEQ" MINVALUE 10000 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 10000';
+ exception when object_exists then null;
+end;
\ No newline at end of file
diff --git a/src/db/migration/V20240813_0932__AL-4549.sql b/src/db/migration/V20240813_0932__AL-4549.sql
new file mode 100644
index 000000000..5270a884c
--- /dev/null
+++ b/src/db/migration/V20240813_0932__AL-4549.sql
@@ -0,0 +1,21 @@
+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 "TRAYECTOS_EXPRESOS"
+ ADD FOREIGN KEY ("SOLICITUDEXPRESO_ID")
+ REFERENCES "SOLICITUD_EXPRESO" ("SOLICITUDEXPRESO_ID") ENABLE';
+ 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/V20240908_1718__AL-4552.sql b/src/db/migration/V20240908_1718__AL-4552.sql
new file mode 100644
index 000000000..8b7c0855f
--- /dev/null
+++ b/src/db/migration/V20240908_1718__AL-4552.sql
@@ -0,0 +1,8 @@
+declare
+ object_exists exception;
+ pragma exception_init (object_exists , -00955);
+begin
+ execute immediate
+ 'ALTER TABLE SOLICITUD_EXPRESO ADD (DOCLISTAPASAJEROS BLOB)';
+ exception when object_exists then null;
+end;
\ No newline at end of file