Skip to content
Snippets Groups Projects
README.md 959 B
Newer Older
# Migrate Devel

Adds new options to `drush migrate-import` which 
allows developers to debug their migrations.

`drush migrate-import` comes from either the 
[migrate_tools](https://www.drupal.org/project/migrate_tools) or the 
[migrate_run](https://www.drupal.org/project/migrate_run) modules.

Currently uses Kint (from devel) directly to print out debug information 
instead of devel in order to take advantage of 
cli coloring and named variable debugging.

Options are:

* `--migrate-debug` - Prints out rows as they run. 
Can be used in `migrate-import` or `migrate-status` and will revert 
existing migrations to the default and clear the cache for them. 
This requires [config_update](https://www.drupal.org/project/config_update) 
if you use [migrate_plus](https://www.drupal.org/project/migrate_plus) 
because migrations go into config.
* `--migrate-debug-pre` - Same as above before the process is run on the row.
Can be used in `migrate-import`.