From 7e40204eb2454fae86ab309560ca93f86a36de42 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 1 Jun 2017 10:57:45 -0700 Subject: [PATCH] Fix migration Fixes #6695 // FREEBIE --- src/org/thoughtcrime/securesms/database/DatabaseFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java index 3c6b66e465..b7dc02514b 100644 --- a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java +++ b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java @@ -875,7 +875,7 @@ public class DatabaseFactory { db.execSQL("ALTER TABLE identities ADD COLUMN blocking_approval INTEGER DEFAULT 0"); db.execSQL("ALTER TABLE identities ADD COLUMN nonblocking_approval INTEGER DEFAULT 0"); - db.execSQL("DROP INDEX archived_count_index"); + db.execSQL("DROP INDEX archived_index"); db.execSQL("CREATE INDEX IF NOT EXISTS archived_count_index ON thread (archived, message_count)"); db.execSQL("UPDATE identities SET blocking_approval = '1'");