r121 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r120‎ | r121 | r122 >
Date:15:30, 11 February 2002
Author:hidders
Status:old
Tags:
Comment:
add removal of superfluous indexes, and creation of index on old_title
Modified paths:
  • /trunk/phpwiki/fpw/updSchema.sql (modified) (history)

Diff [purge]

Index: trunk/phpwiki/fpw/updSchema.sql
@@ -2,5 +2,17 @@
33 # It adapts the table definitions adds indexes and, if necessary,
44 # fills new columns with appropriate values.
55
 6+# adding the indexes on the timestamps
 7+
68 ALTER TABLE cur ADD INDEX timeind (cur_timestamp);
79 ALTER TABLE old ADD INDEX timeind (old_timestamp);
 10+
 11+# adding index on old_title
 12+
 13+ALTER TABLE old MODIFY old_title VARCHAR(255) BINARY NOT NULL DEFAULT '';
 14+ALTER TABLE old ADD INDEX old_title (old_title);
 15+
 16+# dropping the superfluous indexes on cur_id and old_id
 17+
 18+ALTER TABLE cur DROP key cur_id_2;
 19+ALTER TABLE old DROP key old_id_2;

Status & tagging log