function hosting_client_update_2 in Hostmaster (Aegir) 6
Create the hosting_client_user relationship table
File
- modules/
hosting/ client/ hosting_client.install, line 131 - Install, update and uninstall for the clients module.
Code
function hosting_client_update_2() {
$ret = array();
$ret[] = update_sql("CREATE TABLE {hosting_client_user} (\n user int(10) unsigned NOT NULL default '0',\n client int(10) unsigned NOT NULL default '0',\n PRIMARY KEY (user)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
// Insert the uid 1 user into the admin client record.
$ret[] = update_sql("INSERT INTO {hosting_client_user} VALUES (1, 1)");
node_access_rebuild();
return $ret;
}