MigrationDraft<TPlan extends PlannedMigration> class

File-backed migration draft created from schema diffing.

Constructors

MigrationDraft({required String name, required DateTime generatedAt, required TPlan plan, required String beforeSchema, required String afterSchema, required String providerName})
Creates a migration draft.
const

Properties

afterSchema String
Schema source after the migration.
final
beforeSchema String
Schema source before the migration.
final
checksum String
Stable checksum used for migration history validation.
no setter
generatedAt DateTime
Draft creation timestamp.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Migration directory name.
final
plan → TPlan
Migration plan derived from the schema diff.
final
providerName String
Provider name used for checksums and history metadata.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqlScript String
SQL script written to migration.sql.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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