You are here

function homebox_update_6002 in Homebox 6

Same name and namespace in other branches
  1. 6.3 homebox.install \homebox_update_6002()
  2. 6.2 homebox.install \homebox_update_6002()

File

./homebox.install, line 81
The install file for Home box allows the module to install (and uninstall) itself. This is required as this module uses its own table.

Code

function homebox_update_6002() {
  $ret = array();
  $field_definition = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  );
  db_add_field($ret, 'homebox_default', 'status', $field_definition);
  db_add_field($ret, 'homebox_default', 'open', $field_definition);
  $ret[] = update_sql("DELETE FROM {homebox_users} WHERE uid = 0");
  return $ret;
}