RenameTable
@Repeatable
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
@OptionalExpectation
public annotation RenameTable
Repeatable annotation declaring the renamed tables in the new version of an auto migration.
| See also | |
|---|---|
AutoMigration |
Summary
Nested types |
|---|
@Target(allowedTargets = [AnnotationTarget.CLASS])Container annotation for the repeatable annotation |
Public constructors |
|---|
RenameTable(@NonNull String fromTableName, @NonNull String toTableName) |
Public methods |
|
|---|---|
final @NonNull String |
Name of the table in the |
final @NonNull String |
Name of the table in the |
Public constructors
Public methods
getFromTableName
public final @NonNull String getFromTableName()
Name of the table in the AutoMigration.from version of the database.
getToTableName
public final @NonNull String getToTableName()
Name of the table in the AutoMigration.to version of the database.