You are here

function hosting_client_update_6 in Hostmaster (Aegir) 6

Make it possible to have many clients per user and keep track of the contact type (admin/tech/billing/etc.) between users and clients

File

modules/hosting/client/hosting_client.install, line 174
Install, update and uninstall for the clients module.

Code

function hosting_client_update_6() {
  $ret = array();
  $ret[] = update_sql("ALTER TABLE {hosting_client_user} DROP PRIMARY KEY, ADD PRIMARY KEY (user, client)");
  $ret[] = update_sql("ALTER TABLE {hosting_client_user} ADD contact_type LONGTEXT NOT NULL");
  node_access_rebuild();
  return $ret;
}