RenameTable

public abstract @interface RenameTable
implements Annotation

androidx.room.RenameTable


Repeatable annotation declaring the renamed tables in the new version of an auto migration.

See also:

Summary

Nested classes

@interface RenameTable.Entries

Container annotation for the repeatable annotation RenameTable

Public methods

String fromTableName()

Name of the table in the AutoMigration.from() version of the database.

String toTableName()

Name of the table in the AutoMigration.to() version of the database.

Inherited methods

Public methods

fromTableName

public String fromTableName ()

Name of the table in the AutoMigration.from() version of the database.

Returns
String Name of the table to rename from.

toTableName

public String toTableName ()

Name of the table in the AutoMigration.to() version of the database.

Returns
String Name of the table to rename to.