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.
who wants it? can we have it?
Comment | File | Size | Author |
---|---|---|---|
#2 | entity_translation_upgrade_drush_extension-1800158-2.patch | 4.36 KB | meichr |
Comments
Comment #1
drzraf CreditAttribution: drzraf commentedsee #1800158: Entity Translation Upgrade, drush extension.
Comment #2
meichr CreditAttribution: meichr commentedSo, this issue is marked as a duplicate to itself ;-) and I havn't found any other issue with the feature request of an entity_translation_upgrade drush extension. Therefore, I open this issue again and attached is a patch for a drush extension to upgrade nodes for entity translation.
Please be aware that another patch attached to the related issue #2307937-1: Batch API needs $context['results'] handled as an array, not a value has to be applied for the drush extension to work properly.
The drush extension 'drush entity-translation-upgrade [argument]' allows to upgrade nodes of one content type at a time by adding the content type machine name as the argument or by invoking the drush command 'drush etu' (alias) without an argument and selecting the content type out of a list.
Enjoy, and please kindly review.
Comment #3
meichr CreditAttribution: meichr commentedAdded related issue of a patch which is needed for the drush extension to work properly.
Comment #4
meichr CreditAttribution: meichr commentedRelated issue now correctly added.
Comment #5
joseph.olstadvery good script, used it myself to upgrade tens of thousands of nodes that would have otherwise timed out in the UI.
Comment #6
plachLooks good to me, thanks!
Comment #7
joseph.olstadcommit?
Comment #8
joseph.olstadPerformed yet another entity_translation upgrade using the above patch that provides the drush command drush entity-translation-upgrade.
FYI: here's our full upgrade steps and complementary scripts, field title, field trans, and node in the correct order.
See the scripts we used:
et_upgrade_article_node.php
<?php
enable_or_disable_field_translation.php
<?php
Comment #9
stefanos.petrakis@gmail.comThanks for this, I will fix some small things (typos, code-styling, verb usage) on commit.