Configuration Validation and Migration Execution
After configuring your migration, follow these steps:
Validate the configuration: Validate your migration configuration to ensure correctness before running the migration.
bashbin/console b2b:migrate:validate
- Checks the configuration for errors. Ensure the XML is well-formed and adheres to a valid schema. It will also verify if the fields and tables exist in the database; otherwise, it will throw an exception.
- Provides hints to resolve issues if validation fails.
INFO
Validation helps catch configuration errors early, saving time during migration.
Monitor progress (should be run in a separate terminal):
bashbin/console b2b:migrate:progress --watch
Start the migration (ensure the queue worker is running):
bashbin/console b2b:migrate:commercial
Review logs and errors in
b2b_components_migration_errors
to ensure a successful migration.In case you want to roll back the migration, use:
bashbin/console b2b:migrate:rollback