MigrationPlan class final

Ordered steps that migrate a database from fromVersion to toVersion.

Constructors

MigrationPlan({required int fromVersion, required int toVersion, required List<PlanStep> steps})
Creates a plan for the given version range and steps.
const

Properties

fromVersion → int
Schema version the plan starts from.
final
hasDestructiveChanges → bool
True if any step drops columns/tables or performs a table copy-swap
no setter
hashCode → int
The hash code for this object.
no setterinherited
isUpToDate → bool
True if current version equals target version
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → List<PlanStep>
Steps to apply, in order.
final
toVersion → int
Schema version the plan migrates to.
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