/** * On upgrade. * * @param db * the db * @param oldVersion * the old version * @param newVersion * the new version */ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (AbstractDataSource.this.options.databaseLifecycleHandler != null) { AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, true); versionChanged = true; } }
/** * On downgrade. * * @param db * the db * @param oldVersion * the old version * @param newVersion * the new version */ public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (AbstractDataSource.this.options.databaseLifecycleHandler != null) { AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, false); versionChanged = true; } }
/** * On downgrade. * * @param db * the db * @param oldVersion * the old version * @param newVersion * the new version */ public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (AbstractDataSource.this.options.databaseLifecycleHandler != null) { AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, false); versionChanged = true; } }
/** * On upgrade. * * @param db * the db * @param oldVersion * the old version * @param newVersion * the new version */ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (AbstractDataSource.this.options.databaseLifecycleHandler != null) { AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, true); versionChanged = true; } }