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)

CommentFileSizeAuthor
#2 1852176-webform-install.patch760 bytescafuego

Comments

keva’s picture

Same 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

cafuego’s picture

Status: Active » Needs review
StatusFileSize
new760 bytes

Same 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 :-)

quicksketch’s picture

Status: Needs review » Closed (won't fix)

Hi @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.

bunnicula’s picture

Version: 7.x-4.0-alpha6 » 7.x-4.0-beta1
Status: Closed (won't fix) » Needs review

More "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!

quicksketch’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

I'm going to apply cafuego's patch for the install file. What else am I supposed to do? help me doc!

Uninstall 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.

Matroschker’s picture

I 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.