I have just upgraded to version 7.x-4.4

I am trying to uninstall and reinstall the webform module via the admin interface, but keep getting hit with the error below upon reinstall:

DatabaseSchemaObjectExistsException: Table webform already exists. in DatabaseSchema->createTable() (line 657 of /opt/www/prdA/includes/database/schema.inc).

I am wondering if backup of the database and then drop the effected Webform's table is the only way to fully remove the module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DanChadwick’s picture

Status: Active » Fixed

Webform was not properly uninstalled or successfully uninstalled. It left the webform table in the database. But it could have left other tables there too. See what tables are present.

I'm not sure what version you updated from, but if you have a backup, I'd revert to that, plus whatever version of webform was in effect at the time. Then update webform and visit update.php, or better install drush and use 'drush update webform' to both download the new version and run updatedb.

jovin1027’s picture

Pardon my ignorance I am new to maintaining modules via git and submodules. I was using 7.x-4.3. So I should revert back to 7.x-4.3 then reupdate to 7.x-4.4. Thank you very much for your help.

DanChadwick’s picture

If you were using 4.3, I'm not sure why you uninstalled, but it didn't work. At this point, revert your database to before the update and just run updatedb with 4.4.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.