diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2015-05-01 22:05:03 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2015-05-01 22:05:03 +0200 |
commit | 0f4610bfccb3b5d0b93536b1f2bb344e8fe23dae (patch) | |
tree | 64781e88c02c84ffab5f631bba36405df2386bf8 | |
parent | a348e9a488871fa68f7f3829750c36a0b5a53d99 (diff) | |
download | android_packages_apps_Email-0f4610bfccb3b5d0b93536b1f2bb344e8fe23dae.tar.gz android_packages_apps_Email-0f4610bfccb3b5d0b93536b1f2bb344e8fe23dae.tar.bz2 android_packages_apps_Email-0f4610bfccb3b5d0b93536b1f2bb344e8fe23dae.zip |
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 <jorge@ruesga.com>
-rw-r--r-- | provider_src/com/android/email/provider/DBHelper.java | 8 |
1 files changed, 7 insertions, 1 deletions
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 |