@Test public void addsSentinelRowsForLargeNumberOfDocuments() { schema.runMigrations(0, 6); int documentCount = 250; for (int i = 0; i < documentCount; i++) { String path = "coll/doc_" + i; db.execSQL( "INSERT INTO remote_documents (path) VALUES (?)", new String[] {encode(path(path))}); } new SQLitePersistence.Query(db, "SELECT COUNT(*) FROM target_documents") .first( row -> { assertEquals(0, row.getLong(0)); }); schema.runMigrations(6, 7); new SQLitePersistence.Query(db, "SELECT COUNT(*) FROM target_documents") .first( row -> { assertEquals(documentCount, row.getLong(0)); }); }
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);   }