AlterTable class

Operation carrying every intra-table change as one unit: the full old and new definitions, detected column renames, the table's indexes on both sides, and the tables whose foreign keys reference it.

Inheritance

Constructors

AlterTable({required TableInfo oldTable, required TableInfo newTable, Map<String, String> renamedColumns = const {}, List<IndexInfo> oldIndexes = const [], List<IndexInfo> newIndexes = const [], List<ReferencedBy> referencedBy = const []})
Operation carrying every intra-table change as one unit: the full old and new definitions, detected column renames, the table's indexes on both sides, and the tables whose foreign keys reference it.
const
AlterTable.fromMap(Map<String, dynamic> map)
Creates an AlterTable from a map representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
newIndexes List<IndexInfo>
This table's indexes after the change.
final
newTable TableInfo
The table definition after the change.
final
oldIndexes List<IndexInfo>
This table's indexes before the change.
final
oldTable TableInfo
The table definition before the change.
final
referencedBy List<ReferencedBy>
The transitive closure of tables whose foreign keys reference this one, in their (unchanged) new-schema form. See ReferencedBy for why.
final
renamedColumns Map<String, String>
Detected column renames, old name to new name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
The table's name (unchanged by this operation).
no setter

Methods

describe() String
Returns a human-readable description of the operation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this operation to a map representation for serialization.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited