public class

WorkDatabaseMigrations.WorkMigration9To10

extends Migration

 java.lang.Object

androidx.room.migration.Migration

↳androidx.work.impl.WorkDatabaseMigrations.WorkMigration9To10

Overview

Adds the Preference table.

Summary

Fields
from MigrationendVersion, startVersion
Constructors
publicWorkMigration9To10(Context context)

Methods
public abstract voidmigrate(SupportSQLiteDatabase database)

Should run the necessary migrations.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public WorkMigration9To10(Context context)

Methods

public abstract void migrate(SupportSQLiteDatabase database)

Should run the necessary migrations.

This class cannot access any generated Dao in this method.

This method is already called inside a transaction and that transaction might actually be a composite transaction of all necessary Migrations.

Parameters:

database: The database instance