MigrationRunner class

Constructors

MigrationRunner({required SchemaDriver schemaDriver, required MigrationLedger ledger, required List<MigrationDescriptor> migrations, MigrationPlanResolver? planResolver, String? defaultSchema, bool emitEvents = true, EventBus? events})

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

applyAll({int? limit}) Future<MigrationReport>
Applies all pending migrations (or up to limit).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollback({int steps = 1}) Future<MigrationReport>
Rolls back the most recently applied migrations.
status() Future<List<MigrationStatus>>
Returns the status of all known migrations.
toString() String
A string representation of this object.
inherited

Operators

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