You are here

function hosting_alias_install in Hosting 5

Same name and namespace in other branches
  1. 6.2 alias/hosting_alias.install \hosting_alias_install()

File

alias/hosting_alias.install, line 2

Code

function hosting_alias_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {hosting_site_alias} (\n        vid int NOT NULL DEFAULT '0',\n        nid int(10) unsigned NOT NULL DEFAULT '0',\n        alias varchar(128) NOT NULL,\n        automatic INT(1) NOT NULL DEFAULT '0',\n        KEY (vid, alias)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
      break;
  }
}