From 13ca6ea4330df8a7c799a8d90ab3efe7af0fe9e1 Mon Sep 17 00:00:00 2001 From: alberto Date: Wed, 26 Oct 2016 18:34:37 +0000 Subject: [PATCH] =?UTF-8?q?Exporta=C3=A7=C3=A3o=20Fiscal=20:=20ECF=20e=20R?= =?UTF-8?q?MD=20(issue=208120)?= 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@62030 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20161024_1430__mantis8120.sql | 4 ++-- src/db/migration/V20161024_1920__mantis8120.sql | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/db/migration/V20161024_1430__mantis8120.sql b/src/db/migration/V20161024_1430__mantis8120.sql index fb14d4842..8e47a3d60 100644 --- a/src/db/migration/V20161024_1430__mantis8120.sql +++ b/src/db/migration/V20161024_1430__mantis8120.sql @@ -1,2 +1,2 @@ -alter table fiscal_ml2 add (indvendamanual number(1)); -alter table fiscal_r4 add (indvendamanual number(1)); +alter table fiscal_ml2 add (indvendamanual NUMBER(1) DEFAULT 0); +alter table fiscal_r4 add (indvendamanual NUMBER(1) DEFAULT 0); diff --git a/src/db/migration/V20161024_1920__mantis8120.sql b/src/db/migration/V20161024_1920__mantis8120.sql index fe509fe7a..45323820a 100644 --- a/src/db/migration/V20161024_1920__mantis8120.sql +++ b/src/db/migration/V20161024_1920__mantis8120.sql @@ -1,15 +1,9 @@ -update fiscal_ml2 set indvendamanual = 0; - update fiscal_ml2 set indvendamanual = 1 where fiscalml2_id in ( select ml2.fiscalml2_id from fiscal_ml2 ml2 join boleto b on b.boleto_id = ml2.boleto_id where b.tipoventa_id = 3); - - -update fiscal_r4 set indvendamanual = 0; - update fiscal_r4 set indvendamanual = 1 where fiscalr4_id in ( select r4.fiscalr4_id from fiscal_r4 r4