RenameColumn
-
Cmn
@Repeatable
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
@OptionalExpectation
annotation RenameColumn -
android
@Repeatable(value = RenameColumn.Entries)
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
annotation RenameColumn
Repeatable annotation declaring the renamed columns in the AutoMigration.to version of an auto migration.
| See also | |
|---|---|
AutoMigration |
Summary
Nested types |
|---|
@Target(allowedTargets = [AnnotationTarget.CLASS])Container annotation for the repeatable annotation |
Public constructors |
|
|---|---|
RenameColumn( |
Cmn
android
|
Public properties |
||
|---|---|---|
String |
Name of the column in the |
Cmn
android
|
String |
Name of the table in the |
Cmn
android
|
String |
Name of the column in the |
Cmn
android
|
Public constructors
Public properties
fromColumnName
val fromColumnName: String
Name of the column in the AutoMigration.from version of the database.
| Returns | |
|---|---|
String |
Name of the column. |
tableName
val tableName: String
Name of the table in the AutoMigration.from version of the database the renamed column is found in. The name in AutoMigration.from version is used in case the table was renamed in the AutoMigration.to version.
| Returns | |
|---|---|
String |
Name of the table |
toColumnName
val toColumnName: String
Name of the column in the AutoMigration.to version of the database.
| Returns | |
|---|---|
String |
Name of the column. |