Journey class

Create a Journey that will run a series of one time executed migrations. All migrations that occur over the lifetime of your app can be provided, only migrations that have not been run will be executed.

Constructors

Journey({required List<Migration> migrations, Storage? storage})
Create a new Journey instance.

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

migrate() Future<List<MigrationReport>>
Run all Migrations that have not been executed for this user Returns a list of MigrationReports which can be used for analytical purposes. The list of MigrationReports only contains the reports of the executed migrations.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Revoke all reports, meaning they will be executed again next time migrate is called
rollback() Future<void>
Rollback the provided migrations. This also means they will be executed again next time migrate is called
toString() String
A string representation of this object.
inherited

Operators

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