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.
Hi,
This db update fails. The message (below) is that the field already exists. How should I move past this?
Thanks!
~~~~~~~~~~~
The following updates are pending:
entity_translation_upgrade module :
7001 - Implements hook_update_N(). Adds the 'complete' column to the history table.
Do you wish to run all pending updates? (y/n): y
Cannot add field entity_translation_upgrade_history.complete: field already exists. [error]
Performed update: entity_translation_upgrade_update_7001 [ok]
Finished performing updates.
~~~~~~~~~~~
Comments
Comment #1
js CreditAttribution: js commentedFor now, to get past this error, I commented out
//db_add_field($table, $name, $spec);
from
/sites/all/modules/entity_translation/entity_translation_upgrade/entity_translation_upgrade.install
to let the update complete adding the index and updating the new field.
Comment #2
plachDid you upgrade from a -dev version or previously applied a patch that could have added the
{entity_translation_upgrade_history}.complete
field?