Update #7200
Failed: DatabaseSchemaObjectExistsException: Cannot add field <em class="placeholder">invite</em>.<em class="placeholder">iid</em>: field already exists. in DatabaseSchema_mysql->addField() (line 323 of /home2/formykid/drupal/7/drupal-7.12/includes/database/mysql/schema.inc).

Need to

if (!db_field_exists('invite', 'iid')) {
  db_add_field('invite', 'iid', $spec, $new_keys);
}

I'm upgrading from 6.x-2.0-beta3. Many implementations of this update forget to check if the field exists already.

Comments

Anonymous’s picture

I can confirm this is an issue when upgrading from Drupal 6 to Drupal 7. I had to uninstall and reinstall the module to avoid this.

MaskOta’s picture

Issue summary: View changes

The solution provided in the OP works

Thanks