Пример #1
0
 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
   for (Table table : tables) {
     table.onUpgrade(db, oldVersion, newVersion);
   }
 }
Пример #2
0
 @Override
 public void onCreate(SQLiteDatabase db) {
   for (Table table : tables) {
     db.execSQL(table.getCreateStatement());
   }
 }