MigrationOperation class
migration operation
Constructors
-
MigrationOperation({required MigrationType type, FieldSchema? field, FieldSchemaUpdate? fieldUpdate, String? fieldName, String? newName, IndexSchema? index, String? indexName, List<
String> ? fields, bool? unique, String? newTableName, PrimaryKeyConfig? primaryKeyConfig, PrimaryKeyConfig? oldPrimaryKeyConfig, ForeignKeySchema? foreignKey, String? foreignKeyName, ForeignKeySchema? oldForeignKey}) -
const
-
MigrationOperation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- field → FieldSchema?
-
final
- fieldName → String?
-
final
-
fields
→ List<
String> ? -
final
- fieldUpdate → FieldSchemaUpdate?
-
final
- foreignKey → ForeignKeySchema?
-
final
- foreignKeyName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → IndexSchema?
-
final
- indexName → String?
-
final
- newName → String?
-
final
- newTableName → String?
-
final
- oldForeignKey → ForeignKeySchema?
-
final
- oldPrimaryKeyConfig → PrimaryKeyConfig?
-
final
- primaryKeyConfig → PrimaryKeyConfig?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MigrationType
-
final
- unique → bool?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited