Merge pull request 'Espec Bolivariano - Integração Infobit. fixes bug#AL-4273' (!147) from AL-4273_1 into master

Reviewed-on: http://18.235.188.113:3000/utilidades/Flyway/pulls/147
Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>
master
Valdir Cordeiro 2024-07-17 14:00:44 +00:00
commit 61c7dca06d
3 changed files with 48 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId> <artifactId>Flyway</artifactId>
<version>1.67.0</version> <version>1.68.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -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;

View File

@ -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;
/