SchemaRenameOperation class
A rename that never clobbers: on the map path the value moves only when
the target key is absent (a partially-migrated row keeps its newer
value); on the SQL path it emits ALTER TABLE … RENAME COLUMN through
the SqlConvertibleOperation hook.
- Inheritance
-
- Object
- ColumnOperation
- SchemaRenameOperation
- Implemented types
Constructors
- SchemaRenameOperation(String from, {required String to})
Properties
Methods
-
apply(
Map< String, dynamic> row) → Map<String, dynamic> -
Applies this operation to
rowand returns the resulting row.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSqlStatements(
String table, SqlDialect dialect) → List< String> -
The SQL statements equivalent to this operation, run in order.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited