migrator/migrator library
Classes
- Migration
- Single schema migration from from to to.
- MigrationContext
- Context provided to migrations for deterministic data.
- MigrationResult
- Result of applying a migration chain.
- Migrator
- Applies ordered migrations and validates continuity.
Typedefs
-
MigrationFn
= Map<
String, dynamic> Function(Map<String, dynamic> payload) - Function that transforms a payload into the next schema version.
-
MigrationFnWithContext
= Map<
String, dynamic> Function(Map<String, dynamic> payload, MigrationContext context) - Function that transforms a payload into the next schema version with context.