From 3712245d12da504b772566d810ba2bc8ffd5dee7 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Wed, 17 Jul 2024 10:54:56 -0300 Subject: [PATCH] =?UTF-8?q?Espec=20Bolivariano=20-=20Integra=C3=A7=C3=A3o?= =?UTF-8?q?=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