AutoMigrationSpec

public interface AutoMigrationSpec

androidx.room.migration.AutoMigrationSpec


Interface for defining an automatic migration specification for Room databases.

The methods defined in this interface will be called on a background thread from the executor set in Room's builder. It is important to note that the methods are all in a transaction when it is called.

See also:

Summary

Public methods

default void onPostMigrate(SupportSQLiteDatabase db)

Invoked after the migration is completed.

Public methods

onPostMigrate

public void onPostMigrate (SupportSQLiteDatabase db)

Invoked after the migration is completed.

Parameters
db SupportSQLiteDatabase: The SQLite database.