public class

WorkDatabaseMigrations.RescheduleMigration

extends Migration

 java.lang.Object

androidx.room.migration.Migration

↳androidx.work.impl.WorkDatabaseMigrations.RescheduleMigration

Overview

A WorkDatabase migration that reschedules all eligible Workers.

Summary

Fields
from MigrationendVersion, startVersion
Constructors
publicRescheduleMigration(Context context, int startVersion, int endVersion)

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 RescheduleMigration(Context context, int startVersion, int endVersion)

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