Restart keep-alive tuning

This commit is contained in:
M66B
2020-04-01 11:26:27 +02:00
parent 8dfb40a29d
commit 85090df088

View File

@@ -1435,6 +1435,7 @@ public abstract class DB extends RoomDatabase {
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `keep_alive_succeeded` INTEGER NOT NULL DEFAULT 0");
db.execSQL("UPDATE account SET keep_alive_failed = 0, keep_alive_ok = 0");
}
})
.addMigrations(new Migration(151, 152) {