You are here

function hosting_update_6011 in Hostmaster (Aegir) 6

Implements hook_update_N().

Clients and packages were imported as belonging to the anonymous user. Reassign them to the admin user.

File

modules/hosting/hosting.install, line 311
Install, update and uninstall for the hosting module.

Code

function hosting_update_6011() {
  $ret = array();
  db_query("UPDATE {node} SET uid=1 WHERE uid=0 AND type IN ('client', 'package')");
  return $ret;
}