RenameTable
-
Cmn
@Repeatable
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
@OptionalExpectation
annotation RenameTable -
android
@Repeatable(value = RenameTable.Entries)
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
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(fromTableName: String, toTableName: String) |
Cmn
android
|
Public properties |
||
|---|---|---|
String |
Name of the table in the |
Cmn
android
|
String |
Name of the table in the |
Cmn
android
|
Public constructors
Public properties
fromTableName
val fromTableName: String
Name of the table in the AutoMigration.from version of the database.
| Returns | |
|---|---|
String |
Name of the table to rename from. |
toTableName
val toTableName: String
Name of the table in the AutoMigration.to version of the database.
| Returns | |
|---|---|
String |
Name of the table to rename to. |