Merge pull request 'AL-4271' (!122) from AL-4271 into master

Reviewed-on: utilidades/Flyway#122
Reviewed-by: wallace <wallace@rjconsultores.com.br>
master
Lucas Taiã 2024-06-13 20:37:44 +00:00
commit cff21b826d
2 changed files with 90 additions and 1 deletions

View File

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

View File

@ -0,0 +1,89 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE SEQUENCE CREDIBANCO_SERVICE_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 NOCACHE ORDER CYCLE';
exception when object_exists then null;
end;
/
declare
table_exists exception;
pragma exception_init (table_exists , -00955);
begin
execute immediate
'CREATE TABLE EMPRESA_CREDIBANCO_CONFIG (
EMPRESACREDIBANCOCONFIG_ID NUMBER(7) NOT NULL,
EMPRESA_ID NUMBER(7,0),
CHAVE VARCHAR2(100) NULL,
VALOR VARCHAR2(150) NULL,
ACTIVO NUMBER(1),
FECMODIF DATE,
USUARIO_ID NUMBER(7),
PRIMARY KEY ( EMPRESACREDIBANCOCONFIG_ID )
)';
exception when table_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "EMPRESA_CREDIBANCO_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE INDEX IDX_CREDIBANCO_CHAVE ON EMPRESA_CREDIBANCO_CONFIG (EMPRESA_ID, CHAVE)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate
'CREATE SEQUENCE ASISTVIAJE_SERVICE_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 NOCACHE ORDER CYCLE';
exception when object_exists then null;
end;
/
declare
table_exists exception;
pragma exception_init (table_exists , -00955);
begin
execute immediate
'CREATE TABLE EMPRESA_ASISTVIAJE_CONFIG (
EMPRESAASISTVIAJECONFIG_ID NUMBER(7) NOT NULL,
EMPRESA_ID NUMBER(7,0),
CHAVE VARCHAR2(100) NULL,
VALOR VARCHAR2(150) NULL,
ACTIVO NUMBER(1),
FECMODIF DATE,
USUARIO_ID NUMBER(7),
PRIMARY KEY ( EMPRESAASISTVIAJECONFIG_ID )
)';
exception when table_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "EMPRESA_ASISTVIAJE_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE INDEX IDX_ASISTVIAJE_CHAVE ON EMPRESA_ASISTVIAJE_CONFIG (EMPRESA_ID, CHAVE)';
exception when object_exists then null;
end;
/