enable downgrading to enable future db updates
This commit is contained in:
parent
b61780cb5f
commit
6ef777f411
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
public int getOldVersion() {
|
||||||
return oldVersion;
|
return oldVersion;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue