You are here

function xmlsitemap_node_install in XML sitemap 5.2

Same name and namespace in other branches
  1. 5 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_install()
  2. 6 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_install()

Implementation of hook_install().


xmlsitemap_node/xmlsitemap_node.install, line 59
Install file for XML sitemap node


function xmlsitemap_node_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {xmlsitemap_node} (\n        nid 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 */;");
    case 'pgsql':
      db_query("CREATE TABLE {xmlsitemap_node} (\n        nid 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      );");