@Test public void migrationsDontDeleteTablesOrColumns() { Map<String, Set<String>> tables = new HashMap<>(); for (int toVersion = 1; toVersion <= SQLiteSchema.VERSION; toVersion++) { schema.runMigrations(toVersion - 1, toVersion); Map<String, Set<String>> newTables = getCurrentSchema(); assertNoRemovals(tables, newTables, toVersion); tables = newTables; } }
void runMigrations() { runMigrations(0, VERSION); }
SQLiteSchema { void runMigrations() { runMigrations(0, VERSION); } }
SQLiteSchema { void runMigrations() { runMigrations(0, VERSION); } SQLiteSchema(SQLiteDatabase db, LocalSerializer serializer); }
SQLiteSchema { void runMigrations() { runMigrations(0, VERSION); } SQLiteSchema(SQLiteDatabase db, LocalSerializer serializer);  }
SQLiteSchema { void runMigrations() { runMigrations(0, VERSION); } SQLiteSchema(SQLiteDatabase db, LocalSerializer serializer);   }