Пример #1
0
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    if (databaseHelperListener != null) {
      databaseHelperListener.onUpgrade(db, oldVersion, newVersion);
    }

    checkForeignKeySupport(db);
    executeCreations(db);
    executeMigrations(db, oldVersion, newVersion);
  }
Пример #2
0
 @Override
 public void onUpgrade(DatabaseWrapper database, int oldVersion, int newVersion) {
   if (helperListener != null) {
     helperListener.onUpgrade(database, oldVersion, newVersion);
   }
 }