migrate_orphans
49 sites
Security covered
When using migrate to import data from external data sources, we often have the issue, that the external data source deletes records we previously imported. In our database remain "orphans" and our migrate_map tables are full of orphaned entries.
This modules comes with a handy drush command to remove orphans from a specific migration by comparing the migrate_map table and the external data source.
You have two options:
- Delete orphaned entities
- Disable orphaned entities
Usage:
drush migrate:orphans-purge <migration-name>
drush migrate:orphans-disable <migration-name>