@Test public void dropsLastLimboFreeSnapshotIfValuesCannotBeReliedUpon() { schema.runMigrations(0, 9); db.execSQL( "INSERT INTO targets (target_id, canonical_id, target_proto) VALUES (?,?, ?)", new Object[] {1, "foo", createDummyQueryTargetWithLimboFreeVersion(1).toByteArray()}); schema.runMigrations(9, 10); new SQLitePersistence.Query(db, "SELECT target_proto FROM targets WHERE target_id = 1") .first( cursor -> { byte[] targetProtoBytes = cursor.getBlob(0); try { Target targetProto = Target.parseFrom(targetProtoBytes); assertFalse(targetProto.hasLastLimboFreeSnapshotVersion()); } catch (InvalidProtocolBufferException e) { fail("Failed to decode Query data"); } }); }
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);   }