MigrationStepResult
Represents the result of executing a migration step.
This enum controls the flow of migration execution by indicating how the migration framework should proceed after a step completes. Each result type affects the migration differently:
Usage Examples:
CONTINUE - Normal progression:
step("Initialize database") {
database.initialize()
MigrationStepResult.CONTINUE
}Content copied to clipboard
RERUN - Retry logic:
step("Download data") {
val success = downloadData()
if (success) {
MigrationStepResult.CONTINUE
} else {
logger.w("Download failed, retrying...")
MigrationStepResult.RERUN
}
}Content copied to clipboard
ABORT - Early termination:
step("Check prerequisites") {
if (prerequisitesMet()) {
MigrationStepResult.CONTINUE
} else {
logger.i("Prerequisites not met, skipping migration")
MigrationStepResult.ABORT
}
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared.