adding proper _idx postfix

This commit is contained in:
toyomoyo
2006-04-24 06:00:37 +00:00
parent 31513aa13e
commit 808f9930b3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1832,7 +1832,7 @@ function main_upgrade($oldversion=0) {
if ($oldversion < 2006042401) {
table_column('tags','type','type','varchar','20','','','not null');
modify_database('',"ALTER TABLE prefix_tags ADD INDEX tags_typeuserid_idx (type(20), userid)");
modify_database('',"ALTER TABLE prefix_tags ADD INDEX tags_text(text(255))");
modify_database('',"ALTER TABLE prefix_tags ADD INDEX tags_text_idx(text(255))");
}
return $result;
+1 -1
View File
@@ -880,7 +880,7 @@ CREATE TABLE prefix_tags (
`userid` int(10) NOT NULL default '0',
`text` varchar(20) NOT NULL default '',
KEY `tags_typeuserid_idx` (`type`, `userid`),
KEY `tags_text` (`text`);
KEY `tags_text_idx` (`text`);
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT ='tags structure for moodle.';