hosting_web_server.install in Hosting 5
File
web_server/hosting_web_server.install
View source
<?php
function hosting_web_server_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {hosting_web_server} (\n vid int(10) unsigned NOT NULL default '0',\n nid int(10) unsigned NOT NULL default '0',\n ip_address longtext,\n script_user longtext,\n web_group longtext,\n config_path longtext,\n backup_path longtext,\n restart_cmd longtext,\n drush_path longtext,\n PRIMARY KEY (vid)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
}
}
function hosting_web_server_update_1() {
$ret = array();
$ret[] = update_sql("ALTER TABLE {hosting_web_server} ADD COLUMN drush_path longtext NOT NULL default ''");
return $ret;
}