Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Drupal 5 and Drupal 6 term migration classes contain this condition in their query:
$query->condition('vid', explode(',', $this->sourceVocabulary), 'IN')
This causes the 'vid' becoming ambiguous when adding joins to tables with a 'vid' column. For example when adding a join on term_node because i only want to migrate terms used in published nodes or used in certain node type.
It can be fixed by simply adding 'td.vid' as condition instead of 'vid'.
Patch coming when i have a node id.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_vid_becomes_ambiguous-2822340-1.patch | 1.34 KB | aboros |
Comments
Comment #2
aboros CreditAttribution: aboros as a volunteer commentedpatch