Changeset 1893 in ExiteCMS


Ignore:
Timestamp:
10/20/08 08:51:26 (3 years ago)
Author:
hverton
Message:

updated the module_installer to create utf8 tables

File:
1 edited

Legend:

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

    r1826 r1893  
    1717$mod_title = "Shoutbox"; 
    1818$mod_description = "Shoutbox side panel"; 
    19 $mod_version = "1.1.0"; 
     19$mod_version = "1.1.1"; 
    2020$mod_developer = "WanWizard"; 
    2121$mod_email = "wanwizard@gmail.com"; 
     
    376376 
    377377$mod_install_cmds = array(); 
     378$mod_install_cmds[] = array('type' => 'db', 'value' => "CREATE TABLE ##PREFIX##shoutbox ( 
     379  shout_id smallint(5) unsigned NOT NULL auto_increment, 
     380  shout_name varchar(50) NOT NULL default '', 
     381  shout_message varchar(200) NOT NULL default '', 
     382  shout_datestamp int(10) unsigned NOT NULL default '0', 
     383  shout_ip varchar(20) NOT NULL default '0.0.0.0', 
     384  PRIMARY KEY  (shout_id) 
     385) ENGINE=MyISAM DEFAULT CHARSET=utf8"); 
    378386 
    379387/*---------------------------------------------------+ 
     
    382390 
    383391$mod_uninstall_cmds = array(); 
     392$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DROP TABLE ##PREFIX##shoutbox"); 
    384393 
    385394/*---------------------------------------------------+ 
     
    398407            case "1.1.0": 
    399408                // upgrade to ExiteCMS v7.1. no upgrade actions for this release 
     409            case "1.1.1": 
     410                // upgrade to ExiteCMS v7.2. no upgrade actions for this release 
     411                $result = dbquery"CREATE TABLE IF NOT EXISTS ".$db_prefix."shoutbox ( 
     412                        shout_id smallint(5) unsigned NOT NULL auto_increment, 
     413                        shout_name varchar(50) NOT NULL default '', 
     414                        shout_message varchar(200) NOT NULL default '', 
     415                        shout_datestamp int(10) unsigned NOT NULL default '0', 
     416                        shout_ip varchar(20) NOT NULL default '0.0.0.0', 
     417                        PRIMARY KEY  (shout_id) 
     418                    ) ENGINE=MyISAM DEFAULT CHARSET=utf8"); 
    400419            default: 
    401420                // do this at every upgrade 
Note: See TracChangeset for help on using the changeset viewer.