You are here

function xmlsitemap_term_install in XML sitemap 5

Same name and namespace in other branches
  1. 5.2 xmlsitemap_term/xmlsitemap_term.install \xmlsitemap_term_install()

Implementation of hook_install().

File

xmlsitemap_term/xmlsitemap_term.install, line 22

Code

function xmlsitemap_term_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {xmlsitemap_term} (\n        tid int,\n        pid 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        pid integer,\n        last_changed integer,\n        previously_changed integer,\n        priority_override real,\n        PRIMARY KEY (tid)\n      );");
      break;
  }
}