- Issue created by @paulmckibben
- Merge request !12405Update the Term source plugin to order results by parent, and then by tid. β (Open) created by paulmckibben
When migrating taxonomy terms from Drupal 7 to Drupal 11, if the Drupal 7 database has hierarchical terms where the parent term's tid is greater than the child term's tid, the parent-child relationship is not preserved in the migration. In the migrated Drupal 11 site, the child term winds up at the top level (no parent).
I realize this is related to other issues where migration_lookup is unable to create stubs under certain circumstances, and this is one of those circumstances. However, an easy fix for this particular instance is to change the migrate source to take the taxonomy_term_hierarchy parent_id into account, and order the taxonomy terms by parent id and then tid. This ensures any parent term will be migrated before their children.
Active
11.0 π₯
migration system