You are here

taxonomy_manager.install in Taxonomy Manager 5

File

taxonomy_manager.install
View source
<?php

// $Id: $

/**
 * Implementation of hook_install
 */
function taxonomy_manager_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query("CREATE TABLE {taxonomy_manager_merge} (\n        main_tid int unsigned NOT NULL default '0', \n        merged_tid int unsigned NOT NULL default '0', \n        PRIMARY KEY(merged_tid)  \n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */");
      break;
    case 'pgsql':
      db_query("CREATE TABLE {taxonomy_manager_merge} (\n        main_tid int_unsigned NOT NULL default '0', \n        merged_tid int_unsigned NOT NULL default '0', \n        PRIMARY KEY(merged_tid)  \n      )");
      break;
  }
}

Functions

Namesort descending Description
taxonomy_manager_install Implementation of hook_install