You are here

function hosting_client_update_6 in Hosting 6.2

Same name and namespace in other branches
  1. 5 client/hosting_client.install \hosting_client_update_6()
  2. 7.4 client/hosting_client.install \hosting_client_update_6()
  3. 7.3 client/hosting_client.install \hosting_client_update_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

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;
}