MigrationPlan class

A roadmap of operations which cumulatively describe how a database is migrated (upgraded or downgraded) from any version to any version.

The MigrationPlan is conceptually a map associating each database version with a list of Migrations. These operations would commonly include such things as creating tables, populating initial data, and adding columns.

Constructors

MigrationPlan(Map<int, List<Migration>> _migrationsByVersion)
Build a MigrationPlan from a map associating database versions to the list of Migrations that cumulatively upgrade to (or downgrade from) that version.

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

call(Database db, int version, [int toVersion = -1]) Future<void>
Execute this migration plan.
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
operator [](int v) List<Migration>