From e8f8886cde049da74cdbcac0f044a1893453e6b7 Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 30 Oct 2018 19:53:17 +0000 Subject: [PATCH] fixes bug#12283 dev:Valdevir qua:Thiago git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@86617 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20181025_1020__mantis12283.sql | 32 +++++++++++++++++++ .../migration/V20181029_1020__mantis12283.sql | 28 ++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 src/db/migration/V20181025_1020__mantis12283.sql create mode 100644 src/db/migration/V20181029_1020__mantis12283.sql diff --git a/src/db/migration/V20181025_1020__mantis12283.sql b/src/db/migration/V20181025_1020__mantis12283.sql new file mode 100644 index 000000000..13866fe7e --- /dev/null +++ b/src/db/migration/V20181025_1020__mantis12283.sql @@ -0,0 +1,32 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE TRANSACAOKONDUTO_PK MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 101 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE TRANSACAO_KONDUTO + (TRANSACAOKONDUTO_ID NUMBER(7,0) NOT NULL ENABLE, + BOLETO_ID NUMBER(15,0), + EMPRESA_ID NUMBER(7,0), + KONDUTO_ID VARCHAR2(50), + STATUSTRANSACAO VARCHAR2(2), + STATUSTRANSACAOKONDUTO VARCHAR2(20), + TENTATIVAENVIO NUMBER(3,0), + ACTIVO NUMBER(1,0), + FECMODIF DATE, + USUARIO_ID NUMBER(7,0), + CONSTRAINT TRANSACAOKONDUTO_PK PRIMARY KEY (TRANSACAOKONDUTO_ID) ENABLE, + FOREIGN KEY (EMPRESA_ID) + REFERENCES EMPRESA (EMPRESA_ID) ENABLE + )'; + exception when object_exists then null; +end; + diff --git a/src/db/migration/V20181029_1020__mantis12283.sql b/src/db/migration/V20181029_1020__mantis12283.sql new file mode 100644 index 000000000..fa5b885e8 --- /dev/null +++ b/src/db/migration/V20181029_1020__mantis12283.sql @@ -0,0 +1,28 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE KONDUTOKEY_EMPRESA_PK MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 101 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE KONDUTOKEY_EMPRESA + ( + KONDUTOKEYEMPRESA_ID NUMBER(3,0) NOT NULL ENABLE, + EMPRESA_ID NUMBER(7,0), + KONDUTO_KEY VARCHAR2(50), + ACTIVO NUMBER(1,0), + FECMODIF DATE, + USUARIO_ID NUMBER(7,0), + CONSTRAINT KONDUTOKEY_EMPRESA_PK PRIMARY KEY (KONDUTOKEYEMPRESA_ID) ENABLE, + FOREIGN KEY (EMPRESA_ID) REFERENCES EMPRESA (EMPRESA_ID) ENABLE + )'; + exception when object_exists then null; +end; +