Skip to main content

rollback_migration_with_options

Function rollback_migration_with_options 

Source
pub fn rollback_migration_with_options<S>(
    storage: &mut S,
    plan: &MigrationPlan,
    options: ExecuteOptions<'_>,
) -> Result<MigrationReport, MigrationError>
Expand description

Rollback reusing ExecuteOptions: event subscriptions, progress, config (including backup_dir and checkpoint_dir) and skip_chain_check flow into the generated rollback plan; the backup restore branch dispatches RolledBack on success and Failed on error.