You are here

function mass_contact_update_6002 in Mass Contact 6

Implementation of hook_update().

Update the defaults for weight/selected to integers instead of strings.

File

./mass_contact.install, line 121
This is the un/install file for the Mass Contact module.

Code

function mass_contact_update_6002() {
  $ret = array();

  // Can't use db_field_set_default() due to Drupal bug http://drupal.org/node/517642
  $ret[] = update_sql('ALTER TABLE {mass_contact} ALTER COLUMN weight SET DEFAULT 0');
  $ret[] = update_sql('ALTER TABLE {mass_contact} ALTER COLUMN selected SET DEFAULT 0');
  return $ret;
}