原插件地址:https://discuz.dismall.com/thread-887668-1-1.html
因为SW08调查问卷仅仅支持GBK,自己是UTF8的。所以自己摸索着转码,就最后一步了,数据库升级语句不知道怎么弄(其实我很菜··囧),现有的语句进行升级提示错误,我把语句放上来,哪位大大帮忙转成UFT8能用的数据库升级语句,成功后我把弄好的插件打包传上来,供大家下载,并标注鸣谢帮助转换数据库编码的大大的大名。
现有的语句如下:- CREATE TABLE `cdb_ques_topic` (
- `topicid` int(10) unsigned NOT NULL auto_increment,
- `subject` varchar(255) NOT NULL default 'NoName',
- `message` text NOT NULL,
- `author` varchar(255) NOT NULL default 'Unknown',
- `authorid` int(8) NOT NULL default '0',
- `dateline` int(10) NOT NULL default '0',
- `person` int(8) NOT NULL default '100',
- `stop` tinyint(1) NOT NULL default '0',
- `credit` tinyint(1) NOT NULL default '0',
- `postmust` tinyint(1) NOT NULL default '0',
- `secret` tinyint(1) NOT NULL default '0',
- `exp` int(10) NOT NULL default '0',
- KEY `topicid` (`topicid`)
- ) ENGINE=MyISAM;
- CREATE TABLE `cdb_ques_option` (
- `oid` int(10) unsigned NOT NULL auto_increment,
- `topicid` int(10) NOT NULL default '0',
- `title` varchar(255) NOT NULL default 'NoName',
- `desp` text NOT NULL,
- `mark` text NOT NULL,
- `option` text NOT NULL,
- `key` text NOT NULL,
- `order` int(8) NOT NULL default '0',
- `least` tinyint(1) NOT NULL default '0',
- `type` int(3) NOT NULL default '0',
- KEY `oid` (`oid`)
- ) ENGINE=MyISAM;
- CREATE TABLE `cdb_ques_user` (
- `qid` int(10) unsigned NOT NULL auto_increment,
- `topicid` int(10) NOT NULL default '0',
- `author` varchar(255) NOT NULL default 'Unknown',
- `authorid` int(8) NOT NULL default '0',
- `mark` int(10) NOT NULL default '0',
- `dateline` int(10) NOT NULL default '0',
- KEY `qid` (`qid`)
- ) ENGINE=MyISAM;
- CREATE TABLE `cdb_ques_result` (
- `qid` int(10) unsigned NOT NULL default '0',
- `topicid` int(10) unsigned NOT NULL default '0',
- `oid` int(10) unsigned NOT NULL default '0',
- `authorid` int(8) NOT NULL default '0',
- `answer` text NOT NULL
- ) ENGINE=MyISAM;
复制代码
[ 本帖最后由 蹦你个咙叮咚 于 2008-8-31 12:53 编辑 ] |