function xmlsitemap_node_install in XML sitemap 5
Same name and namespace in other branches
- 5.2 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_install()
- 6 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_install()
Implementation of hook_install().
File
- xmlsitemap_node/
xmlsitemap_node.install, line 22
Code
function xmlsitemap_node_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {xmlsitemap_node} (\n nid int,\n pid int,\n last_changed int(11),\n previously_changed int(11),\n last_comment int(11),\n previous_comment int(11),\n priority_override float,\n PRIMARY KEY (nid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {xmlsitemap_node} (\n nid integer,\n pid integer,\n last_changed integer,\n previously_changed integer,\n last_comment integer,\n previous_comment integer,\n priority_override real,\n PRIMARY KEY (nid)\n );");
break;
}
_xmlsitemap_node_gsitemap_replace();
}