comment for database fix

This commit is contained in:
Vincent Breitmoser
2015-07-08 03:33:46 +02:00
parent 70d94acc58
commit 6cbc0ceeae

View File

@@ -275,6 +275,8 @@ public class KeychainDatabase extends SQLiteOpenHelper {
case 10:
// do nothing here, just consolidate
case 11:
// fix problems in database, see #1402 for details
// https://github.com/open-keychain/open-keychain/issues/1402
db.execSQL("DELETE FROM api_accounts WHERE key_id BETWEEN 0 AND 3");
if (oldVersion == 10) {
// no consolidate if we are updating from 10, we're just here for the api_accounts fix