When I update the database version it's not dropping all the tables (thought I'll be the default behaviour). Do I have to do anything else?
Which SQLiteOpenHelper are you using?
Check your generated DaoMaster class. It has an inner class DevOpenHelper which drops all tables on update.
Please check DaoMaster.java
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.i("greenDAO", "Upgrading schema from version " + oldVersion + " to " + newVersion + " by dropping all tables");
dropAllTables(db, true);
onCreate(db);
}
Make Sure dropAllTables(db, true); have true and again problem exist debug here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With