Ignore:
Timestamp:
10/20/08 08:51:52 (4 years ago)
Author:
hverton
Message:

updated the module_installer to create utf8 tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/wiki/php-files/modules/wiki/module_installer.php

    r1826 r1896  
    149149  comment_acl text NOT NULL, 
    150150  PRIMARY KEY  (page_tag) 
    151 ) ENGINE=MyISAM;"); 
     151) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    152152 
    153153// and add initial record(s) to it 
     
    164164  KEY idx_page_tag (page_tag), 
    165165  KEY idx_time (time) 
    166 ) ENGINE=MyISAM;"); 
     166) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    167167 
    168168// create the table: wiki_links 
     
    173173  KEY idx_from (from_tag), 
    174174  KEY idx_to (to_tag) 
    175 ) ENGINE=MyISAM;"); 
     175) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    176176 
    177177// create the table: wiki_aliases 
     
    182182  KEY idx_from (from_tag), 
    183183  KEY idx_to (to_tag) 
    184 ) ENGINE=MyISAM;"); 
     184) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    185185 
    186186// create the table: wiki_pages 
     
    201201  KEY idx_latest (latest), 
    202202  FULLTEXT KEY body (body) 
    203 ) ENGINE=MyISAM;"); 
     203) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    204204 
    205205// and add initial record(s) to it 
     
    230230  spammer varchar(150) NOT NULL default '', 
    231231  KEY idx_spammer (spammer) 
    232 ) ENGINE=MyISAM;"); 
     232) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    233233 
    234234// and add initial record(s) to it 
     
    242242  KEY idx_page_tag (page_tag), 
    243243  KEY idx_time (time) 
    244 ) ENGINE=MyISAM;"); 
     244) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    245245 
    246246// create the table: wiki_users 
     
    256256  PRIMARY KEY  (name), 
    257257  KEY idx_signuptime (signuptime) 
    258 ) ENGINE=MyISAM;"); 
     258) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    259259 
    260260// create the table: wiki_images 
     
    264264  image_name VARCHAR( 100 ) NOT NULL , 
    265265  image_realname VARCHAR( 100 ) NOT NULL , 
    266 PRIMARY KEY ( image_id ) 
    267 ) ENGINE=MyISAM;"); 
     266  PRIMARY KEY ( image_id ) 
     267) ENGINE=MyISAM DEFAULT CHARSET=utf8;"); 
    268268 
    269269// create the user groups for this module 
Note: See TracChangeset for help on using the changeset viewer.