@Test public void createsMutationsTable() { schema.runMigrations(); assertNoResultsForQuery("SELECT uid, batch_id FROM mutations", NO_ARGS); db.execSQL("INSERT INTO mutations (uid, batch_id) VALUES ('foo', 1)"); Cursor cursor = db.rawQuery("SELECT uid, batch_id FROM mutations", NO_ARGS); assertTrue(cursor.moveToFirst()); assertEquals("foo", cursor.getString(cursor.getColumnIndex("uid"))); assertEquals(1, cursor.getInt(cursor.getColumnIndex("batch_id"))); assertFalse(cursor.moveToNext()); cursor.close(); }
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);   }