bug #AL-3949

master
Lucas 2024-05-06 21:07:27 -03:00
parent 4d0f0556cc
commit f408507dee
2 changed files with 44 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.40.1</version>
<version>1.41.0</version>
<distributionManagement>
<repository>

View File

@ -0,0 +1,43 @@
declare
table_exists exception;
pragma exception_init (table_exists , -00955);
begin
execute immediate
'CREATE TABLE EMPRESA_SICFE_CONFIG (
EMPRESASICFECONFIG_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 ( EMPRESASICFECONFIG_ID )
)';
exception when table_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "EMPRESA_SICFE_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_SICFE_CHAVE ON EMPRESA_SICFE_CONFIG (EMPRESA_ID, CHAVE)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE FACTURACION_SICFE ADD (EMPRESA_ID NUMBER(7))';
exception when object_exists then null;
end;
/