HomeSort by relevance Sort by last modified time
    Searched refs:migrations (Results 1 - 5 of 5) sorted by null

  /frameworks/support/room/runtime/src/test/java/android/arch/persistence/room/
BuilderTest.java 74 RoomDatabase.MigrationContainer migrations = config.migrationContainer; local
75 assertThat(migrations.findMigrationPath(0, 1), is(asList(m1)));
76 assertThat(migrations.findMigrationPath(1, 2), is(asList(m2)));
77 assertThat(migrations.findMigrationPath(0, 2), is(asList(m1, m2)));
78 assertThat(migrations.findMigrationPath(2, 0), CoreMatchers.<List<Migration>>nullValue());
79 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue());
90 RoomDatabase.MigrationContainer migrations = config.migrationContainer; local
91 assertThat(migrations.findMigrationPath(0, 1), is(asList(m3)));
92 assertThat(migrations.findMigrationPath(1, 2), is(asList(m2)));
93 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue())
105 RoomDatabase.MigrationContainer migrations = config.migrationContainer; local
    [all...]
  /external/autotest/database/
migrate.py 13 'AUTOTEST_WEB': os.path.join(_AUTODIR, 'frontend', 'migrations'),
14 'TKO': os.path.join(_AUTODIR, 'tko', 'migrations'),
18 _DEFAULT_MIGRATIONS_DIR = 'migrations' # use CWD
85 """Managest database migrations."""
94 # simulated rather than actually taken. For use with migrations that
194 """Gets the list of migrations to perform.
206 migrations = [Migration.from_file(filename)
209 migrations = [migration for migration in migrations
212 migrations = [migration for migration in migration
    [all...]
  /frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/
RoomOpenHelper.java 69 List<Migration> migrations = mConfiguration.migrationContainer.findMigrationPath( local
71 if (migrations != null) {
72 for (Migration migration : migrations) {
RoomDatabase.java 317 * Migrations, mapped by from-to pairs.
344 * Each Migration has a start and end versions and Room runs these migrations to bring the
356 * @param migrations The migration object that can modify the database and to the necessary
360 public Builder<T> addMigrations(Migration... migrations) {
361 mMigrationContainer.addMigrations(migrations);
446 * A container to hold migrations. It also allows querying its contents to find migrations
454 * Adds the given migrations to the list of available migrations. If 2 migrations have th
    [all...]
  /frameworks/support/room/testing/src/main/java/android/arch/persistence/room/testing/
MigrationTestHelper.java 153 * Runs the given set of migrations on the provided database.
155 * It uses the same algorithm that Room uses to choose migrations so the migrations instances
167 * @param version The final version after applying the migrations.
171 * @param migrations The list of available migrations.
176 boolean validateDroppedTables, Migration... migrations) throws IOException {
185 container.addMigrations(migrations);

Completed in 288 milliseconds