DeleteColumn


@Repeatable
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
@OptionalExpectation
public annotation DeleteColumn


Repeatable annotation declaring the deleted columns in the AutoMigration.to version of an auto migration.

See also
AutoMigration

Summary

Nested types

@Target(allowedTargets = [AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.BINARY)
public annotation DeleteColumn.Entries

Container annotation for the repeatable annotation DeleteColumn.

Public constructors

DeleteColumn(@NonNull String tableName, @NonNull String columnName)

Public methods

final @NonNull String

Name of the column deleted in the AutoMigration.to version of the database.

final @NonNull String

Name of the table in the AutoMigration.from version of the database the column was deleted from.

Public constructors

DeleteColumn

public DeleteColumn(@NonNull String tableName, @NonNull String columnName)

Public methods

getColumnName

public final @NonNull String getColumnName()

Name of the column deleted in the AutoMigration.to version of the database.

Returns
@NonNull String

Name of the column.

getTableName

public final @NonNull String getTableName()

Name of the table in the AutoMigration.from version of the database the column was deleted from.

Returns
@NonNull String

Name of the table