From 44e9960dc67b088982d3edd933e026b593b729f7 Mon Sep 17 00:00:00 2001 From: korelstar Date: Thu, 9 Feb 2017 12:31:46 +0100 Subject: [PATCH] Fix missing default value in table "folders" --- .../main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java b/k9mail/src/main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java index f9c07ae25..7737c6112 100644 --- a/k9mail/src/main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java +++ b/k9mail/src/main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java @@ -12,6 +12,7 @@ import com.fsck.k9.Account; import com.fsck.k9.BuildConfig; import com.fsck.k9.K9; import com.fsck.k9.mail.Flag; +import com.fsck.k9.mail.Folder; import com.fsck.k9.mailstore.migrations.Migrations; import com.fsck.k9.mailstore.migrations.MigrationsHelper; import com.fsck.k9.preferences.Storage; @@ -89,7 +90,7 @@ class StoreSchemaDefinition implements LockableDatabase.SchemaDefinition { "poll_class TEXT, " + "push_class TEXT, " + "display_class TEXT, " + - "notify_class TEXT, " + + "notify_class TEXT default '"+ Folder.FolderClass.INHERITED.name() + "', " + "more_messages TEXT default \"unknown\"" + ")");