tried running update after upgrading... on drupal drupal-7.x-dev (2010/08/30), got this:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: update.php?id=12&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function db_column_exists() in /home/public_html/sites/all/modules/webform/webform.install on line 415

it's refering to this function:

/**
 * Add columns for e-mail HTML and attachment settings.
 */
function webform_update_7302() {
  if (!db_column_exists('webform_emails', 'html')) {
    db_add_field('webform_emails', 'html', array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'default' => 0, 'not null' => TRUE));
    db_add_field('webform_emails', 'attachments', array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'default' => 0, 'not null' => TRUE));
  }
}
CommentFileSizeAuthor
#3 webform_db_field_exists.patch844 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

duntuk’s picture

Here's the reason.

http://drupal.org/node/776856

"Rename db_column_exists() to db_field_exists()"

according to that should be the following:

/**
* Add columns for e-mail HTML and attachment settings.
*/
function webform_update_7302() {
  if (!db_field_exists('webform_emails', 'html')) {
    db_add_field('webform_emails', 'html', array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'default' => 0, 'not null' => TRUE));
    db_add_field('webform_emails', 'attachments', array('type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE, 'default' => 0, 'not null' => TRUE));
  }
}

*edit*
yup that fixed it.

duntuk’s picture

Status: Active » Needs review
quicksketch’s picture

Status: Needs review » Fixed
FileSize
844 bytes

Thanks duntuk, committed.

quicksketch’s picture

Title: upgrade from 7.x-3.0-beta-8 to 7.x-3.x-dev (2010/08/30) fails » Upgrade from 7.x-3.0-beta-8 fails, db_column_exists() renamed to db_field_exists()

Status: Fixed » Closed (fixed)

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