From b534335594496a6414f742e0651f65e0bad2c0e7 Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 12 Jul 2024 18:10:26 -0300 Subject: [PATCH 01/14] Cadastro de convenio transportadora feat bug#AL-4346 --- pom.xml | 2 +- src/db/migration/V20240710_1907__AL-4346.sql | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index bd171c161..0772696b5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.63.0 + 1.64.0 diff --git a/src/db/migration/V20240710_1907__AL-4346.sql b/src/db/migration/V20240710_1907__AL-4346.sql index 04e554507..14ca502f1 100644 --- a/src/db/migration/V20240710_1907__AL-4346.sql +++ b/src/db/migration/V20240710_1907__AL-4346.sql @@ -11,9 +11,9 @@ begin "USUARIO_ID" NUMBER(7,0), "ACTIVO" NUMBER(1,0), "FECMODIF" DATE, - CONSTRAINT "fk_grupo_contrato" FOREIGN KEY ("CONVENIOTRANSPORTADORA_ID") REFERENCES "CONVENIO_TRANSPORTADORA"("CONVENIOTRANSPORTADORA_ID"), - CONSTRAINT "fk_parada_origen" FOREIGN KEY ("ORIGEN_ID") REFERENCES "PARADA"("PARADA_ID"), - CONSTRAINT "fk_parada_destino" FOREIGN KEY ("DESTINO_ID") REFERENCES "PARADA"("PARADA_ID") + CONSTRAINT "fk_convenio_tarifas" FOREIGN KEY ("CONVENIOTRANSPORTADORA_ID") REFERENCES "CONVENIO_TRANSPORTADORA"("CONVENIOTRANSPORTADORA_ID"), + CONSTRAINT "fk_parada_origen_convenio" FOREIGN KEY ("ORIGEN_ID") REFERENCES "PARADA"("PARADA_ID"), + CONSTRAINT "fk_parada_destino_convenio" FOREIGN KEY ("DESTINO_ID") REFERENCES "PARADA"("PARADA_ID") )'; exception when object_exists then null; end; From 0220f4af4bd6c2fe0416e75fcac6dd13c39018dd Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 16 Jul 2024 11:23:03 -0300 Subject: [PATCH 02/14] fixes bug #AL-4634 --- pom.xml | 164 +++++++++--------- .../backup/oracle/V20240716_0958__AL-4634.sql | 7 + 2 files changed, 89 insertions(+), 82 deletions(-) create mode 100644 src/db/backup/oracle/V20240716_0958__AL-4634.sql diff --git a/pom.xml b/pom.xml index 0772696b5..128ff088e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,83 +1,83 @@ - - 4.0.0 - br.com.rjconsultores - Flyway - 1.64.0 - - - - rj-releases - http://52.5.53.15:8081/nexus/content/repositories/releases/ - - - - - UTF-8 - UTF-8 - - - - src - - - - ${basedir}/src - - *.* - db/** - - - - - - - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.flywaydb - flyway-maven-plugin - 3.2.1 - - true - - - - ${project.artifactId} - - - - - org.apache.logging.log4j - log4j-core - 2.17.1 - - - - org.flywaydb - flyway-core - 4.2.0 - - - - javax.servlet - javax.servlet-api - 4.0.0 - provided - - - - com.oracle.database.jdbc - ojdbc8 - 21.7.0.0 - - - - + + 4.0.0 + br.com.rjconsultores + Flyway + 1.65.0 + + + + rj-releases + http://52.5.53.15:8081/nexus/content/repositories/releases/ + + + + + UTF-8 + UTF-8 + + + + src + + + + ${basedir}/src + + *.* + db/** + + + + + + + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.flywaydb + flyway-maven-plugin + 3.2.1 + + true + + + + ${project.artifactId} + + + + + org.apache.logging.log4j + log4j-core + 2.17.1 + + + + org.flywaydb + flyway-core + 4.2.0 + + + + javax.servlet + javax.servlet-api + 4.0.0 + provided + + + + com.oracle.database.jdbc + ojdbc8 + 21.7.0.0 + + + + \ No newline at end of file diff --git a/src/db/backup/oracle/V20240716_0958__AL-4634.sql b/src/db/backup/oracle/V20240716_0958__AL-4634.sql new file mode 100644 index 000000000..a9f691b33 --- /dev/null +++ b/src/db/backup/oracle/V20240716_0958__AL-4634.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA ADD (CODSIGMA VARCHAR2(7))'; + exception when object_exists then null; +end; \ No newline at end of file From 32fbfb2fba0472dee9710591d76b2db4dd96514d Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 16 Jul 2024 15:54:45 -0300 Subject: [PATCH 03/14] fixes bug #AL-4635 --- pom.xml | 2 +- src/db/migration/V20240716_1154__AL-4635.sql | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240716_1154__AL-4635.sql diff --git a/pom.xml b/pom.xml index 128ff088e..b00b75cd5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.65.0 + 1.66.0 diff --git a/src/db/migration/V20240716_1154__AL-4635.sql b/src/db/migration/V20240716_1154__AL-4635.sql new file mode 100644 index 000000000..ac8782b72 --- /dev/null +++ b/src/db/migration/V20240716_1154__AL-4635.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD (INDFREQMINIMA NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD (INDFREQMINIMA NUMBER(1,0))'; + exception when column_exists then null; +end; \ No newline at end of file From 4240e2f8823b78440ac42f1b7c40df9430d90e17 Mon Sep 17 00:00:00 2001 From: Fabio Date: Tue, 16 Jul 2024 19:59:16 -0300 Subject: [PATCH 04/14] Cadastro de desconto por contrato feat bug#AL-4342 --- pom.xml | 2 +- src/db/migration/V20240716_1038__AL-4342.sql | 29 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240716_1038__AL-4342.sql diff --git a/pom.xml b/pom.xml index b00b75cd5..b6a76d13b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.66.0 + 1.67.0 diff --git a/src/db/migration/V20240716_1038__AL-4342.sql b/src/db/migration/V20240716_1038__AL-4342.sql new file mode 100644 index 000000000..0c4ce36d5 --- /dev/null +++ b/src/db/migration/V20240716_1038__AL-4342.sql @@ -0,0 +1,29 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE DESCONTO_CONTRATO ( + DESCONTOCONTRATO_ID NUMBER(7,0) PRIMARY KEY, + CONTRATO_ID NUMBER(7,0), + DATA_INICIAL DATE, + DATA_FINAL DATE, + PORCENTAGEM NUMBER(5,2), + INDDESCONTO NUMBER(1,0), + USUARIO_ID NUMBER(7,0), + ACTIVO NUMBER(1,0), + FECMODIF DATE, + CONSTRAINT fk_contrato_desconto FOREIGN KEY (CONTRATO_ID) REFERENCES CONTRATO_CORPORATIVO(CONTRATO_ID), + CONSTRAINT fk_usuario_contrato_desconto 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 "DESCONTO_CONTRATO_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ From 3712245d12da504b772566d810ba2bc8ffd5dee7 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Wed, 17 Jul 2024 10:54:56 -0300 Subject: [PATCH 05/14] =?UTF-8?q?Espec=20Bolivariano=20-=20Integra=C3=A7?= =?UTF-8?q?=C3=A3o=20Infobit.=20fixes=20bug#AL-4273?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V20240715_1507__AL-4273.sql | 16 ++++++++++ src/db/migration/V20240715_1953__AL-4273.sql | 31 ++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240715_1507__AL-4273.sql create mode 100644 src/db/migration/V20240715_1953__AL-4273.sql diff --git a/pom.xml b/pom.xml index b6a76d13b..fa481a981 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.67.0 + 1.68.0 diff --git a/src/db/migration/V20240715_1507__AL-4273.sql b/src/db/migration/V20240715_1507__AL-4273.sql new file mode 100644 index 000000000..b3bee5d98 --- /dev/null +++ b/src/db/migration/V20240715_1507__AL-4273.sql @@ -0,0 +1,16 @@ +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 > ESQUEMA OPERACIONAL >> INTEGRAÇÃO >> COMPROVANTE DE PASSAGEM'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.INTEGRACAOCOMPROVANTEPASSAGEM'', 1, SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; diff --git a/src/db/migration/V20240715_1953__AL-4273.sql b/src/db/migration/V20240715_1953__AL-4273.sql new file mode 100644 index 000000000..e82d3aa72 --- /dev/null +++ b/src/db/migration/V20240715_1953__AL-4273.sql @@ -0,0 +1,31 @@ +declare + table_exists exception; + pragma exception_init (table_exists , -00955); +begin + execute immediate + 'CREATE TABLE CONF_COMPROVANTE_PASSAGEM ( + CONFCOMPROVANTEPASSAGEM_ID NUMBER(7) NOT NULL, + EMPRESA_ID NUMBER(7,0), + VIA_COMPROVANTE VARCHAR2(100), + TIPO_INTEGRACAO VARCHAR2(100), + URL VARCHAR2(300), + API_KEY VARCHAR2(300), + REMETENTE VARCHAR2(300), + NOME_TEMPLATE VARCHAR2(100), + ACTIVO NUMBER(1), + FECMODIF DATE, + USUARIO_ID NUMBER(7), + PRIMARY KEY ( CONFCOMPROVANTEPASSAGEM_ID ) + )'; + + exception when table_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE "CONF_COMPROVANTE_PASSAGEM_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE'; + exception when object_exists then null; +end; +/ \ No newline at end of file From 96355383da14cc42842a4dac9416e528b6fa3988 Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 17 Jul 2024 17:53:39 -0300 Subject: [PATCH 06/14] fixes bug#AL-4634 --- pom.xml | 2 +- .../oracle => migration}/V20240716_0958__AL-4634.sql | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename src/db/{backup/oracle => migration}/V20240716_0958__AL-4634.sql (95%) diff --git a/pom.xml b/pom.xml index fa481a981..5a92d7be0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.68.0 + 1.69.0 diff --git a/src/db/backup/oracle/V20240716_0958__AL-4634.sql b/src/db/migration/V20240716_0958__AL-4634.sql similarity index 95% rename from src/db/backup/oracle/V20240716_0958__AL-4634.sql rename to src/db/migration/V20240716_0958__AL-4634.sql index a9f691b33..e2f8705c1 100644 --- a/src/db/backup/oracle/V20240716_0958__AL-4634.sql +++ b/src/db/migration/V20240716_0958__AL-4634.sql @@ -1,7 +1,7 @@ -declare - object_exists exception; - pragma exception_init (object_exists , -01430); -begin - execute immediate 'ALTER TABLE PARADA ADD (CODSIGMA VARCHAR2(7))'; - exception when object_exists then null; +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE PARADA ADD (CODSIGMA VARCHAR2(7))'; + exception when object_exists then null; end; \ No newline at end of file From ffd7ada45367a73a4e47a3c4638129342c4c73fa Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 17 Jul 2024 19:26:20 -0300 Subject: [PATCH 07/14] fixes bug #AL-4647 --- pom.xml | 2 +- src/db/migration/V20240717_1744__AL-4647.sql | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240717_1744__AL-4647.sql diff --git a/pom.xml b/pom.xml index 5a92d7be0..98f4239fc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.69.0 + 1.70.0 diff --git a/src/db/migration/V20240717_1744__AL-4647.sql b/src/db/migration/V20240717_1744__AL-4647.sql new file mode 100644 index 000000000..88e9412dc --- /dev/null +++ b/src/db/migration/V20240717_1744__AL-4647.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 empresa ADD INDQRCODEFORMMARCOREG NUMBER(1,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file From 71946aff8fd8d6bf2d2ea5c493efbbf03b4c302e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aristides=20dos=20Reis=20J=C3=BAnior?= Date: Thu, 18 Jul 2024 00:31:02 -0300 Subject: [PATCH 08/14] fixes bug#AL-4586 --- pom.xml | 2 +- src/db/migration/V20240716_1320__AL-4587.sql | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240716_1320__AL-4587.sql diff --git a/pom.xml b/pom.xml index 98f4239fc..5b18b4295 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.70.0 + 1.71.0 diff --git a/src/db/migration/V20240716_1320__AL-4587.sql b/src/db/migration/V20240716_1320__AL-4587.sql new file mode 100644 index 000000000..c9fe1d553 --- /dev/null +++ b/src/db/migration/V20240716_1320__AL-4587.sql @@ -0,0 +1,14 @@ +-- 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 funcion_sistema VALUES (funcion_sistema_seq.NEXTVAL, 1, ''ADM > RELATORIOS > RELATORIOS > RELATORIOS ESTATISTICO > RELATORIO DESCONTO POR CUPOM'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODESCONTOPORCUPOM'', 1, SYSDATE, 1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file From 163ef2f7ebcde252f68bc50d1a6304817109e17f Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 18 Jul 2024 11:17:32 -0300 Subject: [PATCH 09/14] Cadastro de convenio transportadora feat bug#AL-4346 --- pom.xml | 2 +- src/db/migration/V20240708_1537__AL-4346.sql | 2 +- src/db/migration/V20240710_1907__AL-4346.sql | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 5b18b4295..bc5d38ca9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.71.0 + 1.72.0 diff --git a/src/db/migration/V20240708_1537__AL-4346.sql b/src/db/migration/V20240708_1537__AL-4346.sql index a7c52af92..7a29c8ce4 100644 --- a/src/db/migration/V20240708_1537__AL-4346.sql +++ b/src/db/migration/V20240708_1537__AL-4346.sql @@ -2,7 +2,7 @@ declare object_exists exception; pragma exception_init (object_exists , -00955); begin - execute immediate 'CREATE TABLE CONVENIO_TRANSPORT ( + execute immediate 'CREATE TABLE CONVENIO_TRANSPORTADORA ( CONVENIOTRANSPORTADORA_ID NUMBER(7,0) PRIMARY KEY, TRANSPORTADORA_ID NUMBER(7,0), NOME_CONVENIO VARCHAR2(150), diff --git a/src/db/migration/V20240710_1907__AL-4346.sql b/src/db/migration/V20240710_1907__AL-4346.sql index 14ca502f1..fb6e2ebd1 100644 --- a/src/db/migration/V20240710_1907__AL-4346.sql +++ b/src/db/migration/V20240710_1907__AL-4346.sql @@ -24,4 +24,5 @@ declare begin execute immediate 'CREATE SEQUENCE "TARIFA_CONVENIO_TRANSP_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; exception when object_exists then null; -end; \ No newline at end of file +end; +/ \ No newline at end of file From f80fb883ad93449b8075618406071cce68d9f035 Mon Sep 17 00:00:00 2001 From: valdevir Date: Thu, 18 Jul 2024 16:31:52 -0300 Subject: [PATCH 10/14] fixes bug #AL-4657 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bc5d38ca9..efc8a73b5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.72.0 + 1.73.0 From 6ecdaa42252e0e735b16879b6e41817942d42f0b Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 19 Jul 2024 10:53:58 -0300 Subject: [PATCH 11/14] fixes bug #AL-4657 --- pom.xml | 2 +- src/db/migration/V20240617_1834__AL-4505.sql | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240617_1834__AL-4505.sql diff --git a/pom.xml b/pom.xml index efc8a73b5..7f91d4056 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.73.0 + 1.74.0 diff --git a/src/db/migration/V20240617_1834__AL-4505.sql b/src/db/migration/V20240617_1834__AL-4505.sql new file mode 100644 index 000000000..aaf59bd1a --- /dev/null +++ b/src/db/migration/V20240617_1834__AL-4505.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 PARAM_RECOLECCION ADD IMPORTEBASE NUMBER(7,2)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file From a7142ba6ebd01fda0bff92732b10ca5645a65437 Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 19 Jul 2024 12:44:02 -0300 Subject: [PATCH 12/14] Funcionalidade de adicao ao contrato feat bug#AL-4343 --- pom.xml | 2 +- src/db/migration/V20240710_1052__AL-4343.sql | 24 -------------------- src/db/migration/V20240718_1844__AL-4343.sql | 15 ++++++++++++ src/db/migration/V20240719_1127__AL-4343.sql | 16 +++++++++++++ 4 files changed, 32 insertions(+), 25 deletions(-) delete mode 100644 src/db/migration/V20240710_1052__AL-4343.sql create mode 100644 src/db/migration/V20240718_1844__AL-4343.sql create mode 100644 src/db/migration/V20240719_1127__AL-4343.sql diff --git a/pom.xml b/pom.xml index 7f91d4056..c611698bd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.74.0 + 1.75.0 diff --git a/src/db/migration/V20240710_1052__AL-4343.sql b/src/db/migration/V20240710_1052__AL-4343.sql deleted file mode 100644 index 30c1c8f91..000000000 --- a/src/db/migration/V20240710_1052__AL-4343.sql +++ /dev/null @@ -1,24 +0,0 @@ -declare - object_exists exception; - pragma exception_init (object_exists , -00955); -begin - execute immediate 'CREATE TABLE TIPO_LANCAMENTO_CAIXA ( - TIPO_LANCAMENTO_ID NUMBER(7,0) PRIMARY KEY, - NOME_LANCAMENTO VARCHAR2(255), - INDACRESCIMO NUMBER(1,0), - ACTIVO NUMBER(1,0), - USUARIO_ID NUMBER(7,0), - FECMODIF DATE, - CONSTRAINT fk_usuario_tipo_lancamento 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 "TIPO_LANCAMENTO_CAIXA_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; - exception when object_exists then null; -end; -/ diff --git a/src/db/migration/V20240718_1844__AL-4343.sql b/src/db/migration/V20240718_1844__AL-4343.sql new file mode 100644 index 000000000..a61f52fa4 --- /dev/null +++ b/src/db/migration/V20240718_1844__AL-4343.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 CAIXA_CONTRATO ADD OBSERVACAO VARCHAR2(150)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; diff --git a/src/db/migration/V20240719_1127__AL-4343.sql b/src/db/migration/V20240719_1127__AL-4343.sql new file mode 100644 index 000000000..56af4c4d0 --- /dev/null +++ b/src/db/migration/V20240719_1127__AL-4343.sql @@ -0,0 +1,16 @@ +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 CAIXA_CONTRATO DROP CONSTRAINT FK_TIPO_LANCAMENTO_CAIXA_CONTRATO'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ From cf9f7812f429dfb4ac392ecf574a68c2dac8afb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aristides=20dos=20Reis=20J=C3=BAnior?= Date: Fri, 19 Jul 2024 20:39:13 -0300 Subject: [PATCH 13/14] fixes bug#AL-4587 --- pom.xml | 2 +- src/db/migration/V20240705_11706__AL-4587.sql | 122 ++++++++++++++++++ 2 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240705_11706__AL-4587.sql diff --git a/pom.xml b/pom.xml index c611698bd..3ad150081 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.75.0 + 1.75.1 diff --git a/src/db/migration/V20240705_11706__AL-4587.sql b/src/db/migration/V20240705_11706__AL-4587.sql new file mode 100644 index 000000000..1a66ca654 --- /dev/null +++ b/src/db/migration/V20240705_11706__AL-4587.sql @@ -0,0 +1,122 @@ +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 BOLETO ADD CONVENIOCAMPANHA_ID NUMBER(7,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ + + +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 BOLETO + ADD CONSTRAINT FK_BOLETO_CONVENIOCAMPANHA + FOREIGN KEY (CONVENIOCAMPANHA_ID) + REFERENCES CONVENIO (CONVENIO_ID)'; + exception + when object_exists then null; + when except_02275 then null; + when except_02270 then null; + when except_02261 then null; +end; +/ + +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 CAJA ADD CONVENIOCAMPANHA_ID NUMBER(7,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/ + + +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 CAJA + ADD CONSTRAINT FK_CAJA_CONVENIOCAMPANHA + FOREIGN KEY (CONVENIOCAMPANHA_ID) + REFERENCES CONVENIO (CONVENIO_ID)'; + exception + when object_exists then null; + when except_02275 then null; + when except_02270 then null; + when except_02261 then null; +end; +/ + + + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE CAMPANHACUPOMSORTEADO ( + CAMPANHACUPOMSORTEADO_ID NUMBER(7,0) NOT NULL ENABLE, + BOLETOSORTEADO_ID NUMBER(15,0), + BOLETOCUPOM_ID NUMBER(15,0), + CONVENIO_ID NUMBER(7,0), + PUNTOVENTA_ID NUMBER(7,0), + EMPRESA_ID NUMBER(7,0), + CODIGOCUPOM VARCHAR2(40 BYTE), + ACTIVO NUMBER(1,0), + FECMODIF DATE, + FECCREACION DATE, + USUARIO_ID NUMBER(7,0), + PRIMARY KEY (CAMPANHACUPOMSORTEADO_ID), + FOREIGN KEY (BOLETOSORTEADO_ID) + REFERENCES BOLETO (BOLETO_ID) ENABLE, + FOREIGN KEY (BOLETOCUPOM_ID) + REFERENCES BOLETO (BOLETO_ID) ENABLE, + FOREIGN KEY (PUNTOVENTA_ID) + REFERENCES PUNTO_VENTA (PUNTOVENTA_ID) ENABLE, + FOREIGN KEY (EMPRESA_ID) + REFERENCES EMPRESA (EMPRESA_ID) ENABLE, + FOREIGN KEY (CONVENIO_ID) + REFERENCES CONVENIO (CONVENIO_ID) ENABLE )'; + exception when object_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE CAMPANHACUPOMSORTEADO_SEQ INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE'; + exception when object_exists then null; +end; \ No newline at end of file From d746ac68f3de4da55f19569cb8c3a7ef59a9f5e8 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Mon, 22 Jul 2024 10:32:24 -0300 Subject: [PATCH 14/14] =?UTF-8?q?Espec=20Bolivariano=20-=20Integra=C3=A7?= =?UTF-8?q?=C3=A3o=20Infobit.=20fixes=20bug#AL-4273?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V20240718_1507__AL-4237.sql | 8 ++++++++ src/db/migration/V20240722_0941__AL-4273.sql | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240718_1507__AL-4237.sql create mode 100644 src/db/migration/V20240722_0941__AL-4273.sql diff --git a/pom.xml b/pom.xml index 3ad150081..eb3ff046b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.75.1 + 1.75.2 diff --git a/src/db/migration/V20240718_1507__AL-4237.sql b/src/db/migration/V20240718_1507__AL-4237.sql new file mode 100644 index 000000000..901514365 --- /dev/null +++ b/src/db/migration/V20240718_1507__AL-4237.sql @@ -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, ''URL_API_RJ_INFOBIP'', ''URL da API da RJ que faz conexao com a api da INFOBIP'', null, ''1'', ''1'', ''1'', sysdate, ''1'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20240722_0941__AL-4273.sql b/src/db/migration/V20240722_0941__AL-4273.sql new file mode 100644 index 000000000..7e32f9845 --- /dev/null +++ b/src/db/migration/V20240722_0941__AL-4273.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 CONF_COMPROVANTE_PASSAGEM ADD IDIOMA_TEMPLATE VARCHAR2(20)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end;