MigrationReport class
Migration report containing the id, status and when it was executed (in UTC)
- Annotations
Constructors
-
MigrationReport.decode(Map<
String, Object?> json) -
Decode a report from json
factory
- MigrationReport.failed({required String migrationId, required String errorMessage})
-
Create a report for a failed migration
factory
- MigrationReport.withResult({required String migrationId, required MigrationResult result})
-
Create a new report for the given
result
factory
Properties
- errorMessage → String?
-
The error message of the migration failed
final
- executedOn → DateTime
-
The date and time of execution in UTC
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- migrationId → String
-
The unique if of the migration
final
- result → MigrationResult
-
The result of the migration
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → Map< String, Object?> - Encode the report in json format
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override