MigrationSource class abstract interface Schema Migrations

Supplies migrations to MigrationRunner.

Implementations read from disk, Flutter assets, or any other store. SQL is resolved eagerly in discover — fine for the small migration sets typical in app development; a lazy source can be added later if sets grow large.

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

discover() Future<List<Migration>>
All migrations, ascending by Migration.version, with SQL already resolved.
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