Home
last modified time | relevance | path

Searched refs:migrations (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/room/runtime/src/test/java/androidx/room/
DBuilderTest.java76 RoomDatabase.MigrationContainer migrations = config.migrationContainer; in migration() local
77 assertThat(migrations.findMigrationPath(0, 1), is(asList(m1))); in migration()
78 assertThat(migrations.findMigrationPath(1, 2), is(asList(m2))); in migration()
79 assertThat(migrations.findMigrationPath(0, 2), is(asList(m1, m2))); in migration()
80 assertThat(migrations.findMigrationPath(2, 0), CoreMatchers.<List<Migration>>nullValue()); in migration()
81 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue()); in migration()
92 RoomDatabase.MigrationContainer migrations = config.migrationContainer; in migrationOverride() local
93 assertThat(migrations.findMigrationPath(0, 1), is(asList(m3))); in migrationOverride()
94 assertThat(migrations.findMigrationPath(1, 2), is(asList(m2))); in migrationOverride()
95 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue()); in migrationOverride()
[all …]
/frameworks/support/room/runtime/src/main/java/androidx/room/
DRoomOpenHelper.java82 List<Migration> migrations = mConfiguration.migrationContainer.findMigrationPath( in onUpgrade() local
84 if (migrations != null) { in onUpgrade()
85 for (Migration migration : migrations) { in onUpgrade()
DRoomDatabase.java467 public Builder<T> addMigrations(@NonNull Migration... migrations) { in addMigrations() argument
471 for (Migration migration: migrations) { in addMigrations()
476 mMigrationContainer.addMigrations(migrations); in addMigrations()
651 public void addMigrations(@NonNull Migration... migrations) { in addMigrations() argument
652 for (Migration migration : migrations) { in addMigrations()
/frameworks/support/room/testing/src/main/java/androidx/room/testing/
DMigrationTestHelper.java181 boolean validateDroppedTables, Migration... migrations) throws IOException { in runMigrationsAndValidate() argument
190 container.addMigrations(migrations); in runMigrationsAndValidate()