function gmap_taxonomy_install in GMap Module 5
Same name and namespace in other branches
- 6.2 gmap_taxonomy.install \gmap_taxonomy_install()
- 6 gmap_taxonomy.install \gmap_taxonomy_install()
Implementation of hook_install().
File
- ./
gmap_taxonomy.install, line 6
Code
function gmap_taxonomy_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {gmap_taxonomy_term} (\n tid int(10) unsigned NOT NULL default '0',\n marker varchar(32),\n PRIMARY KEY tid(tid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */");
db_query("CREATE TABLE {gmap_taxonomy_node} (\n nid int(10) unsigned NOT NULL default '0',\n tid int(10) unsigned NOT NULL default '0',\n marker varchar(32),\n PRIMARY KEY nid(nid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */");
break;
case 'pgsql':
//@@@
break;
}
}