/ Published in: SQL
I had several vocabularies but wanted to merge them into one. A simple query does this for you.
The vocabularyid where I wanted to merge all the tags into is 3 The vocabularyid where the tags are to be merged from is 7, 8 and 12
Expand |
Embed | Plain Text
UPDATE term_data SET vid = 3 WHERE vid IN(7, 8, 12)
Comments
Subscribe to comments
You need to login to post a comment.

Nice, you can also achieve this with: http://drupal.org/project/taxonomy_manager :-D
Thanks for the link. I was aware of that module, but often, one-time-actions are simpler to achieve with a database migration (e.g. in hookupodateN) than with a new module.