* change latin1 to utf8.

This commit is contained in:
wangchunsheng
2009-12-01 01:36:02 +00:00
parent d88ac2f836
commit 331f050499

View File

@@ -28,20 +28,20 @@ CHANGE `left` `left` FLOAT UNSIGNED NOT NULL
todo表
CREATE TABLE IF NOT EXISTS `zt_todo` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`account` char(30) NOT NULL,
`date` date NOT NULL default '0000-00-00',
`begin` smallint(4) unsigned zerofill NOT NULL,
`end` smallint(4) unsigned zerofill NOT NULL,
`type` char(10) NOT NULL,
`idvalue` mediumint(8) unsigned NOT NULL default '0',
`pri` tinyint(3) unsigned NOT NULL,
`name` char(90) NOT NULL,
`desc` char(255) NOT NULL default '',
`status` enum('wait','doing','done') NOT NULL default 'wait',
PRIMARY KEY (`id`),
KEY `user` (`account`)
CREATE TABLE IF NOT EXISTS `zt_todo` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`account` char(30) NOT NULL,
`date` date NOT NULL default '0000-00-00',
`begin` smallint(4) unsigned zerofill NOT NULL,
`end` smallint(4) unsigned zerofill NOT NULL,
`type` char(10) NOT NULL,
`idvalue` mediumint(8) unsigned NOT NULL default '0',
`pri` tinyint(3) unsigned NOT NULL,
`name` char(90) NOT NULL,
`desc` char(255) NOT NULL default '',
`status` enum('wait','doing','done') NOT NULL default 'wait',
PRIMARY KEY (`id`),
KEY `user` (`account`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
product, project表中的company字段
@@ -75,13 +75,13 @@ ALTER TABLE `zt_todo` ADD `private` BOOL NOT NULL
11.4
CREATE TABLE IF NOT EXISTS `zt_burn` (
`project` mediumint(8) unsigned NOT NULL,
`date` date NOT NULL,
`left` float NOT NULL,
`consumed` float NOT NULL,
PRIMARY KEY (`project`,`date`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `zt_burn` (
`project` mediumint(8) unsigned NOT NULL,
`date` date NOT NULL,
`left` float NOT NULL,
`consumed` float NOT NULL,
PRIMARY KEY (`project`,`date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11.5 project status字段更改
ALTER TABLE `zt_project` CHANGE `status` `status` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL