/[drupal]/contributions/modules/taxonomy_image/taxonomy_image.install
ViewVC logotype

Contents of /contributions/modules/taxonomy_image/taxonomy_image.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Jan 18 04:43:13 2007 UTC (2 years, 10 months ago) by jeremy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +8 -1 lines
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 // $Id: taxonomy_image.install,v 1.1 2006/06/27 12:02:21 jeremy Exp $
3
4 /**
5 * Implementation of hook_install().
6 */
7 function taxonomy_image_install() {
8 switch ($GLOBALS['db_type']) {
9 case 'mysql':
10 case 'mysqli':
11 db_query("CREATE TABLE {term_image} (
12 tid int(10) unsigned NOT NULL,
13 path varchar(255) NULL,
14 PRIMARY KEY (tid)
15 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
16 break;
17 case 'pgsql':
18 db_query("CREATE TABLE {term_image} (
19 tid integer unsigned NOT NULL default '0',
20 path varchar(255) NULL,
21 PRIMARY KEY (tid)
22 )");
23 }
24 }
25
26 /**
27 * Implementation of hook_uninstall().
28 */
29 function taxonomy_image_uninstall() {
30 db_query('DROP TABLE {term_image}');
31 }

  ViewVC Help
Powered by ViewVC 1.1.2