void onUpgrade(Database db, int oldVersion, int newVersion) { if (oldVersion != newVersion) { deleteDatabase(); onCreate(db, newVersion); } }