function hosting_web_server_update_2 in Hosting 7.4
Same name and namespace in other branches
- 6.2 web_server/hosting_web_server.install \hosting_web_server_update_2()
- 7.3 web_server/hosting_web_server.install \hosting_web_server_update_2()
Implements hook_update_N().
Add server ports to hosting_web_server table.
File
- web_server/
hosting_web_server.install, line 24 - Update functions for the hosting_web_server module.
Code
function hosting_web_server_update_2() {
$ret = array();
$ret[] = update_sql("ALTER TABLE {hosting_web_server} ADD COLUMN ports longtext NOT NULL default ''");
db_query("UPDATE {hosting_web_server} SET ports = '80'");
return $ret;
}