You are here

function hosting_update_6011 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 hosting.install \hosting_update_6011()
  2. 7.3 hosting.install \hosting_update_6011()

Implements hook_update_N().

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

File

./hosting.install, line 333
Define database schemas and update functions 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;
}