From 5174af6acdeee6b7033aeed3ef1e77155b6408a8 Mon Sep 17 00:00:00 2001 From: fabio Date: Wed, 27 Feb 2019 20:54:05 +0000 Subject: [PATCH] fixes bug#13461 dev: Valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@90343 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190218_1112__mantis13461.sql | 1 + src/db/migration/V201902221_1223__mantis13461.sql | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/db/migration/V201902221_1223__mantis13461.sql diff --git a/src/db/migration/V20190218_1112__mantis13461.sql b/src/db/migration/V20190218_1112__mantis13461.sql index 6a790fa2a..0e69aed61 100644 --- a/src/db/migration/V20190218_1112__mantis13461.sql +++ b/src/db/migration/V20190218_1112__mantis13461.sql @@ -10,6 +10,7 @@ begin , DIGITAITEM_ID NUMBER(3) NOT NULL , DIGITAVENTA_ID NUMBER(7) NOT NULL , BOLETO_ID NUMBER(15) NOT NULL + , FECMODIF DATE DEFAULT sysdate , CONSTRAINT DIGITAITEMBOLETO_ID_PK PRIMARY KEY ( DIGITAITEMBOLETO_ID ) ENABLE , CONSTRAINT DIGITA_ITEM_BOLETO_BOLETO_FK FOREIGN KEY( BOLETO_ID ) REFERENCES BOLETO( BOLETO_ID )ENABLE , CONSTRAINT DIGITA_ITEM_BOLETO_ITEM_FK FOREIGN KEY( DIGITAITEM_ID , DIGITAVENTA_ID ) REFERENCES DIGITA_ITEM( DIGITAITEM_ID , DIGITAVENTA_ID )ENABLE diff --git a/src/db/migration/V201902221_1223__mantis13461.sql b/src/db/migration/V201902221_1223__mantis13461.sql new file mode 100644 index 000000000..8b77d3756 --- /dev/null +++ b/src/db/migration/V201902221_1223__mantis13461.sql @@ -0,0 +1,5 @@ +declare + begin + execute immediate 'CREATE SEQUENCE DIGITA_ITEM_BOLETO_SEQ START WITH 1 INCREMENT BY 1'; + exception when others then null; +end;