You are here

function taxonomy_manager_install in Taxonomy Manager 5

Same name and namespace in other branches
  1. 8 taxonomy_manager.install \taxonomy_manager_install()
  2. 6.2 taxonomy_manager.install \taxonomy_manager_install()
  3. 6 taxonomy_manager.install \taxonomy_manager_install()
  4. 2.0.x taxonomy_manager.install \taxonomy_manager_install()

Implementation of hook_install

File

./taxonomy_manager.install, line 8

Code

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;
  }
}