Skip to main content

apply_migration

Function apply_migration 

Source
pub fn apply_migration(approved: ApprovedMigration) -> Result<MigrationResult>
Expand description

Compatibility adapter for applying an approved migration.

The adapter retains the released ApprovedMigration API and maps semantic transaction conflicts into its legacy Result error shape. New callers that need explicit Conflicted or RecoveryRequired outcomes should use MigrationExecution::run with MigrationCommand::Apply.

Core durably records execution before ordinary-folder mutation and never overwrites pre-existing content. Recovery direction is selected through the durable execution format rather than inferred from an adapter error.