changed some int(11) to int(10)

This commit is contained in:
toyomoyo 2006-04-10 06:26:07 +00:00
parent 16ae46f6c5
commit dffaf68202
2 changed files with 53 additions and 32 deletions

View file

@ -846,19 +846,19 @@ CREATE TABLE prefix_stats_user_monthly (
# Table structure for table `prefix_post`
#
CREATE TABLE prefix_post (
`id` int(11) NOT NULL auto_increment,
`id` int(10) NOT NULL auto_increment,
`module` varchar(20) NOT NULL default '',
`userid` int(11) NOT NULL default '0',
`courseid` int(11) NOT NULL default '0',
`groupid` int(11) NOT NULL default '0',
`moduleid` int(11) NOT NULL default '0',
`coursemoduleid` int(11) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`courseid` int(10) NOT NULL default '0',
`groupid` int(10) NOT NULL default '0',
`moduleid` int(10) NOT NULL default '0',
`coursemoduleid` int(10) NOT NULL default '0',
`subject` varchar(128) NOT NULL default '',
`summary` longtext,
`content` longtext,
`uniquehash` varchar(128) NOT NULL default '',
`rating` int(11) NOT NULL default '0',
`format` int(11) NOT NULL default '0',
`rating` int(10) NOT NULL default '0',
`format` int(10) NOT NULL default '0',
`publishstate` enum('draft','site','public') NOT NULL default 'draft',
`lastmodified` int(10) NOT NULL default '0',
`created` int(10) NOT NULL default '0',
@ -872,21 +872,21 @@ CREATE TABLE prefix_post (
# tags are not limited to blogs
CREATE TABLE prefix_tags (
`id` int(11) NOT NULL auto_increment,
`id` int(10) NOT NULL auto_increment,
`type` varchar(255) NOT NULL default 'official',
`userid` int(11) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`text` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT ='tags structure for moodle.';
# instance of a tag for a blog
CREATE TABLE prefix_blog_tag_instance (
`id` int(11) NOT NULL auto_increment,
`entryid` int(11) NOT NULL default '0',
`tagid` int(11) NOT NULL default '0',
`groupid` int(11) NOT NULL default '0',
`courseid` int(11) NOT NULL default '0',
`userid` int(11) NOT NULL default '0',
`id` int(10) NOT NULL auto_increment,
`entryid` int(10) NOT NULL default '0',
`tagid` int(10) NOT NULL default '0',
`groupid` int(10) NOT NULL default '0',
`courseid` int(10) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
KEY `bti_entryid_idx` (`entryid`),
KEY `bti_tagid_idx` (`tagid`),