Fix migration

Fixes #6695
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-06-01 10:57:45 -07:00
parent d413b80b15
commit 7e40204eb2

View File

@ -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'");