function hosting_client_update_6 in Hosting 5
Same name and namespace in other branches
- 6.2 client/hosting_client.install \hosting_client_update_6()
- 7.4 client/hosting_client.install \hosting_client_update_6()
- 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 111
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;
}