Closed (fixed)
Project:
Webform
Version:
7.x-3.4-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2010 at 22:51 UTC
Updated:
30 Dec 2010 at 03:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThanks, we'll need to remove the drupal_uninstall_schema() also it looks like.
Comment #2
hansrossel commentedI got this error on install of beta4, I suppose it's this issue. Marking as critical, because it's not possible to install webform beta 4 because of this.
DatabaseSchemaObjectExistsException: Table webform already exists. in DatabaseSchema->createTable() (line 544 of /home/example/public_html/includes/database/schema.inc).
The website encountered an unexpected error. Please try again later.
Comment #3
hansrossel commentedAttaching new patch which also removes drupal_uninstall_schema(). Works for me.
Comment #4
quicksketchThanks, committed. My version of Drupal 7 (I was using somewhere between alpha 2 and alpha 3) didn't have this problem. But updating to alpha 3, this definitely causes a large problem on install. I'll put out another beta of Webform shortly.
Comment #6
geerlingguy commentedGetting this error on upgrade - I was using 6.x-3.4, and I tried upgrading to 7.x-3.4 (on Drupal 7 RC1), and got this error (it won't go away):
Update #7304
Comment #7
geerlingguy commentedIf I comment out line 442 (below - db_add_field()), then the update runs fine - is there a way to check if that field already exists?
Comment #8
quicksketch@geerlingguy: This probably should have been opened as a new issue, since it's not at all the same as the original problem (but it is a problem in the same file). When webform_update_7304() was added I didn't think of the situation where a user would be upgrading from Webform 6.x-3.4 to Webform 7.x-3.4 or higher, which of course is a very likely thing to have happen as the 3.4 version of Webform has now been out for months. I've committed this patch which conditionally only adds the "block" column if needed, just like all the other updates in webform.install.
I'm closing this issue directly as it should not have been reopened to begin with (and the title doesn't make any sense).
Comment #9
geerlingguy commentedAh well, at least it's fixed :)