function xmlsitemap_term_install in XML sitemap 5.2
Same name and namespace in other branches
- 5 xmlsitemap_term/xmlsitemap_term.install \xmlsitemap_term_install()
Implementation of hook_install().
File
- xmlsitemap_term/
xmlsitemap_term.install, line 15 - Install file for XML sitemap term
Code
function xmlsitemap_term_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {xmlsitemap_term} (\n tid int,\n last_changed int(11),\n previously_changed int(11),\n priority_override float,\n PRIMARY KEY (tid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {xmlsitemap_term} (\n tid integer,\n last_changed integer,\n previously_changed integer,\n priority_override real,\n PRIMARY KEY (tid)\n );");
break;
}
}