Searched defs:migrations (Results 1 - 2 of 2) sorted by relevance

/frameworks/support/room/testing/src/main/java/androidx/room/testing/
H A DMigrationTestHelper.java158 * Runs the given set of migrations on the provided database.
160 * It uses the same algorithm that Room uses to choose migrations so the migrations instances
172 * @param version The final version after applying the migrations.
176 * @param migrations The list of available migrations.
181 boolean validateDroppedTables, Migration... migrations) throws IOException {
190 container.addMigrations(migrations);
180 runMigrationsAndValidate(String name, int version, boolean validateDroppedTables, Migration... migrations) argument
/frameworks/support/room/runtime/src/main/java/androidx/room/
H A DRoomDatabase.java450 * Each Migration has a start and end versions and Room runs these migrations to bring the
462 * @param migrations The migration object that can modify the database and to the necessary
467 public Builder<T> addMigrations(@NonNull Migration... migrations) { argument
471 for (Migration migration: migrations) {
476 mMigrationContainer.addMigrations(migrations);
551 * to allow destructive migrations from some schema versions while still taking advantage
552 * of exceptions being thrown due to unintentionally missing migrations.
614 + "addMigration(Migration... migrations) that has a start "
638 * A container to hold migrations. It also allows querying its contents to find migrations
651 addMigrations(@onNull Migration... migrations) argument
[all...]

Completed in 66 milliseconds