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

Contents of /contributions/modules/tokenize/tokenize.install

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


Revision 1.3 - (show annotations) (download) (as text)
Thu Oct 16 22:28:27 2008 UTC (13 months, 1 week ago) by greggles
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +7 -7 lines
File MIME type: text/x-php
bug #294940: mysql table creation syntax errors
1 <?php
2 // $Id: tokenize.install,v 1.2 2008/06/23 21:12:56 greggles Exp $
3 /**
4 * Implementation of hook_install().
5 */
6 function tokenize_install() {
7 switch ($GLOBALS['db_type']) {
8 case 'mysql':
9 case 'mysqli':
10 db_query("CREATE TABLE {tokenize} {
11 field_name varchar(32) NOT NULL default '0',
12 type_name varchar(32) NOT NULL default '0',
13 method int(1) NOT NULL default '0'
14 ) /*!40100 DEFAULT CHARACTER SET utf8 */");
15 break;
16 case 'pgsql':
17 db_query("CREATE TABLE {tokenize} (
18 field_name varchar(32) NOT NULL default '0',
19 type_name varchar(32) NOT NULL default '0'
20 method int(1) NOT NULL default '0'
21 )");
22 break;
23 }
24 drupal_set_message(t("Tokenize table created successfully."));
25 }

  ViewVC Help
Powered by ViewVC 1.1.2