Merge pull request #1538 from triplem/prepare_db_update

enable downgrading to enable future db updates
This commit is contained in:
Milos Kozak 2018-11-05 16:39:29 +01:00 committed by GitHub
commit d9b9c2f5f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,6 +156,12 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
}
}
@Override
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
log.info("Do nothing for downgrading...");
log.debug("oldVersion: {}, newVersion: {}", oldVersion, newVersion);
}
public int getOldVersion() {
return oldVersion;
}