From 087a0406a3d1d56bea5456307a9a609fc3a16a55 Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Fri, 1 May 2015 22:05:03 +0200 Subject: [PATCH] email: fix Account table creation Due to a bug in commit 44a064e5f16ddaac25f2acfc03c118f65bc48aec, AUTO_FETCH_ATTACHMENTS column could not be available in the Account table. Since cm12 and up doesn't use this column, we are leave as is it. In case the feature were added, then we need to create a new exception to ensure that the columns is re-added. Change-Id: I1803e343dde2e841fdc99b4489a74eb08b0a8352 Signed-off-by: Jorge Ruesga --- provider_src/com/android/email/provider/DBHelper.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/provider_src/com/android/email/provider/DBHelper.java b/provider_src/com/android/email/provider/DBHelper.java index b5255ac2b..18a4548fe 100644 --- a/provider_src/com/android/email/provider/DBHelper.java +++ b/provider_src/com/android/email/provider/DBHelper.java @@ -524,7 +524,7 @@ public final class DBHelper { + AccountColumns.SIGNATURE + " text, " + AccountColumns.POLICY_KEY + " integer, " + AccountColumns.MAX_ATTACHMENT_SIZE + " integer, " - + AccountColumns.PING_DURATION + " integer" + + AccountColumns.PING_DURATION + " integer, " + AccountColumns.AUTO_FETCH_ATTACHMENTS + " integer" + ");"; db.execSQL("create table " + Account.TABLE_NAME + s); @@ -1561,6 +1561,12 @@ public final class DBHelper { + mContext.getString(R.string.protocol_imap) + "' or " + HostAuth.TABLE_NAME + "." + HostAuthColumns.PROTOCOL + "='imap'));"); } + + // Due to a bug in commit 44a064e5f16ddaac25f2acfc03c118f65bc48aec, + // AUTO_FETCH_ATTACHMENTS column could not be available in the Account table. + // Since cm12 and up doesn't use this column, we are leave as is it. In case + // the feature were added, then we need to create a new exception to ensure + // that the columns is re-added. } @Override