From 31d1606d42a56cfc32ecf1de3c96f2734d44a9fa Mon Sep 17 00:00:00 2001 From: alberto Date: Mon, 25 Feb 2019 13:40:36 +0000 Subject: [PATCH] =?UTF-8?q?[BPe]=20-=20Sequencial=20do=20n=C3=BAmero=20do?= =?UTF-8?q?=20BPe=20bug#13647=20dev:trevezani=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@90217 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190225_1030__mantis13647.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/db/migration/V20190225_1030__mantis13647.sql diff --git a/src/db/migration/V20190225_1030__mantis13647.sql b/src/db/migration/V20190225_1030__mantis13647.sql new file mode 100644 index 000000000..65dd7bf2d --- /dev/null +++ b/src/db/migration/V20190225_1030__mantis13647.sql @@ -0,0 +1,27 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE BPE_CTRL_DISP ( + BPECTRLDISP_ID NUMBER(8), + SEQUENCIA VARCHAR(35), + SERIE VARCHAR(3), + NUMERO VARCHAR(9), + BPE_REJEITADO_ID NUMBER(7,0), + ACTIVO NUMBER(1) NULL, + FECMODIF DATE NULL, + USUARIO_ID NUMBER(7) NULL, + PRIMARY KEY (BPECTRLDISP_ID) + )'; + + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE BPE_CTRL_DISP_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER'; + exception when object_exists then null; +end; \ No newline at end of file