MigrationLedger class abstract

Storage abstraction for recording applied migrations.

Constructors

MigrationLedger()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

ensureInitialized() → Future<void>
Ensures the ledger storage is initialized (e.g., creates tables).
logApplied(MigrationDescriptor descriptor, DateTime appliedAt, {required int batch}) → Future<void>
Adds an applied migration entry to the ledger and assigns a batch number.
nextBatchNumber() → Future<int>
Determines the next batch number to use when logging migrations.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readApplied() → Future<List<AppliedMigrationRecord>>
Returns all applied migrations ordered by application time ascending.
remove(MigrationId id) → Future<void>
Removes the migration entry from the ledger (used during rollbacks).
toString() → String
A string representation of this object.
inherited

Operators

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