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
Implemented types

Constructors

SchemaRenameOperation(String from, {required String to})

Properties

from String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to String
final

Methods

apply(Map<String, dynamic> row) Map<String, dynamic>
Applies this operation to row and 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