Exemplo n.º 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);
  }
Exemplo n.º 2
0
 @Override
 public void onUpgrade(DatabaseWrapper database, int oldVersion, int newVersion) {
   if (helperListener != null) {
     helperListener.onUpgrade(database, oldVersion, newVersion);
   }
 }