When running update.php I get the below error. No matter how many times I run the script it doesn't get past this error. I had to use phpMyAdmin to increment the schema version of Webform in the System table to move past this error.
webform module
Update #7402
Failed: DatabaseSchemaObjectExistsException: Table webform_conditional already exists. in DatabaseSchema->createTable() (line 657 of /var/www/html/drupal_test/includes/database/schema.inc).
I'm upgrading from:
Webform 7.x-3.18
Webform Conditional (Same Page Conditionals) 7.x-1.0-beta1
To:
webform 7.x-4.0-alpha6
webform_conditional 7.x-2.x-dev (2012-Oct-18)
Comments
Comment #1
keva commentedSame issue, but I had already disabled and uninstalled the webform_conditional module before running update.php.
From:
webform 7.x-4.0-alpha4
To:
webform 7.x-4.0-alpha6
Comment #2
cafuego commentedSame problem here. I worked around this by modifying the 7402 update hook to only create the new tables if they don't exist yet.
Patch attached, please test :-)
Comment #3
quicksketchHi @cafuego: I don't think we can do that. The schema's for Webform's "webform_conditional" table and the one created by the Webform Conditional module are different. At the same time I don't think we should be deleting or renaming another module's table. It's unfortunate that we had this collision, but I think Webform module is entitled to use anything in the namespace as the parent module. I made a post in the upgrading handbook stating that you must uninstall Webform Conditional: https://drupal.org/node/1609324#conditionals
Other than that, I don't think we should be deleting another module's data. Ideally Webform Conditional would do its own upgrade path and uninstall when its finished (like content_migrate module). For now I think the only thing we can do is document the problem.
Comment #4
bunnicula commentedMore "documentation" is still needed.... like, "how to upgrade the webform module since the update.php is broken"
Still have the same problem trying to upgrade from 3.19 to 4.0beta1.
I'm going to apply cafuego's patch for the install file. What else am I supposed to do? help me doc!
Comment #5
quicksketchUninstall Webform Conditional (using admin/modules/uninstall) before upgrading Webform to 4.x. Or if you don't have any conditionals you care about, drop the table first in the database. You should definitely *not* just keep the existing table. The schemas and data between what Webform Conditional used and what Webform 4.x use are different.
Comment #6
Matroschker commentedI have the same issue, is any update available to this problem?
Try to uninstall all webform modules at first, install the newest DEV version (Last packaged version: 7.x-4.0-beta3+39-dev) but still this error in the recent logs.