adding proper _idx postfix
This commit is contained in:
+1
-1
@@ -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
@@ -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.';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user