migrate
Executes the migration process and emits progress events.
This method runs all configured migration steps sequentially, emitting progress events to track the migration status. Each step's result determines the next action:
CONTINUE: Proceed to the next step
RERUN: Execute the current step again
ABORT: Terminate migration successfully (no error)
The migration process follows this sequence:
For each step:
Emit MigrationProgress.InProgress before execution
Execute the step
Emit MigrationProgress.StepCompleted after successful execution
Handle the step result (continue, rerun, or abort)
Emit MigrationProgress.Success when all steps complete
Emit MigrationProgress.Error if any step throws an exception
Return
Flow of MigrationProgress events tracking migration status
Parameters
Android context for migration operations