Fix typo in migration constraint resolution

Fixes #6846

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-08-02 08:02:15 -07:00
parent ae93038d66
commit 24c48afd2e

View file

@ -1007,7 +1007,7 @@ public class DatabaseFactory {
db.update("recipient_preferences", values, "_id = ?", new String[] {String.valueOf(id)});
} catch (SQLiteConstraintException e) {
Log.w(TAG, e);
db.delete("recipient_preference", "_id = ?", new String[] {String.valueOf(id)});
db.delete("recipient_preferences", "_id = ?", new String[] {String.valueOf(id)});
}
}