execute

abstract suspend fun execute(context: ExecutionContext): MigrationStepResult

Executes the migration step with the provided execution context.

This method contains the actual migration logic for the step. It has access to the ExecutionContext which provides Android context, logging, and shared state management capabilities.

The method should return a MigrationStepResult to indicate how the migration should proceed:

  • CONTINUE: Move to the next step

  • RERUN: Execute this step again

  • ABORT: Terminate migration successfully

If the step encounters an unrecoverable error, it should throw an exception which will be caught by the Migration framework and result in a MigrationProgress.Error being emitted.

Return

MigrationStepResult indicating how the migration should proceed

Parameters

context

The execution context providing Android context, logging, and state

Throws

if the step encounters an unrecoverable error