From 3074df928f69b8012b3cc03b7ae9e7388fc53825 Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Tue, 14 Feb 2017 19:25:14 +0000 Subject: [PATCH] =?UTF-8?q?fix=20bug=20#8360=20-=20Corrigido=20o=20process?= =?UTF-8?q?o=20de=20impress=C3=A3o.?= 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@65924 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170119_1058__mantis8360.sql | 12 ++++++++++-- src/db/migration/V20170203_0930__mantis8360.sql | 7 +++++++ src/db/migration/V20170213_1430__mantis8360.sql | 7 +++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/db/migration/V20170203_0930__mantis8360.sql create mode 100644 src/db/migration/V20170213_1430__mantis8360.sql diff --git a/src/db/migration/V20170119_1058__mantis8360.sql b/src/db/migration/V20170119_1058__mantis8360.sql index 906c1c245..78c1744d6 100644 --- a/src/db/migration/V20170119_1058__mantis8360.sql +++ b/src/db/migration/V20170119_1058__mantis8360.sql @@ -1,3 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin CREATE TABLE EMBARCADA_LIMITES ( @@ -10,6 +14,10 @@ CREATE TABLE AVISO_DIV NUMBER(15) NOT NULL, AVISO_DIAS NUMBER(15) NOT NULL ); - + exception when object_exists then null; +end; +begin CREATE SEQUENCE EMBARCADA_LIMITES_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 -MINVALUE 1 NOCYCLE CACHE 20 NOORDER; +MINVALUE 1 NOCYCLE CACHE 20 NOORDER; +exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170203_0930__mantis8360.sql b/src/db/migration/V20170203_0930__mantis8360.sql new file mode 100644 index 000000000..472a62234 --- /dev/null +++ b/src/db/migration/V20170203_0930__mantis8360.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE EMBARCADA_SINCRONISMO ADD (FECHADO NUMBER(1))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170213_1430__mantis8360.sql b/src/db/migration/V20170213_1430__mantis8360.sql new file mode 100644 index 000000000..1efe07d15 --- /dev/null +++ b/src/db/migration/V20170213_1430__mantis8360.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE VENDA_EMBARCADA ADD (boletoId NUMBER(20))'; + exception when object_exists then null; +end; \ No newline at end of file