MigrationRecord<TKind extends Enum> class

Single migration history record stored by a relational provider.

Constructors

MigrationRecord({required String name, required DateTime appliedAt, required int statementCount, required TKind kind, required List<String> warnings, required bool rebuildRequired, String? targetName, String? provider, String? checksum, String? beforeSchema, String? afterSchema})
Creates a migration history record.
const

Properties

afterSchema String?
Stored schema snapshot after the migration.
final
appliedAt DateTime
Timestamp recorded in history.
final
beforeSchema String?
Stored schema snapshot before the migration.
final
checksum String?
Checksum stored for drift detection.
final
hashCode int
The hash code for this object.
no setterinherited
isApply bool
Whether this record represents an apply operation.
no setter
isRollback bool
Whether this record represents a rollback operation.
no setter
kind → TKind
History record kind.
final
name String
Migration name.
final
provider String?
Provider name stored with the migration.
final
rebuildRequired bool
Whether the migration required a rebuild.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statementCount int
Number of executed statements.
final
targetName String?
Rollback target name, when kind is rollback.
final
warnings List<String>
Warnings associated with the migration.
final

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