changing tags->text to varchar 20, created index on tags(type, userid), and tags(text)

This commit is contained in:
toyomoyo
2006-04-24 05:53:06 +00:00
parent 9fad492eb5
commit 31513aa13e
5 changed files with 20 additions and 3 deletions
+6
View File
@@ -1523,6 +1523,12 @@ function main_upgrade($oldversion=0) {
}
}
}
// add 2 indexes to tags table
if ($oldversion < 2006042401) {
modify_database('',"CREATE INDEX tags_typeuserid_idx ON prefix_tags (type, userid);");
modify_database('',"CREATE INDEX tags_text_idx ON prefix_tags (text);");
}
return $result;
}