This db update fails. The message (below) is that the field already exists. How should I move past this?

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.


js’s picture

For now, to get past this error, I commented out

//db_add_field($table, $name, $spec);


to let the update complete adding the index and updating the new field.

plach’s picture

Status: Active » Postponed (maintainer needs more info)

Did you upgrade from a -dev version or previously applied a patch that could have added the {entity_translation_upgrade_history}.complete field?