master
Lucas 2024-08-19 12:56:05 -03:00
parent 9be8263561
commit 67934a3a11
2 changed files with 29 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.84.0</version> <version>1.85.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -0,0 +1,28 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate '
CREATE TABLE EMPRESA_CONFIG_LAYOUT (
EMPRESACONFIGLAYOUT_ID NUMBER(7, 0) PRIMARY KEY,
EMPRESA_ID NUMBER(7, 0),
IMPRESIONLAYOUTCONFIG_ID NUMBER(7, 0),
TIPOVENTA_ID NUMBER(2, 0),
INDEMAIL NUMBER(1, 0),
ACTIVO NUMBER(1, 0),
FECMODIF DATE,
USUARIO_ID NUMBER(7, 0),
CONSTRAINT FK_EMP_CONF_LAYOUT FOREIGN KEY ( EMPRESA_ID )
REFERENCES EMPRESA ( EMPRESA_ID )
)';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "EMPRESA_CONFIG_LAYOUT_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
exception when object_exists then null;
end;
/