function hosting_client_update_6 in Hosting 7.4
Same name and namespace in other branches
- 5 client/hosting_client.install \hosting_client_update_6()
- 6.2 client/hosting_client.install \hosting_client_update_6()
- 7.3 client/hosting_client.install \hosting_client_update_6()
Implements hook_update_N().
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 187 - Define database schema, install and update functions for the hosting_client 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;
}