r22489 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22488‎ | r22489 | r22490 >
Date:00:02, 28 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Add UNIQUE KEY (fr_rev_id), don't trust the NS/title/rev_id key
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.sql
@@ -20,6 +20,7 @@
2121 fr_quality tinyint(1) default 0,
2222
2323 PRIMARY KEY (fr_namespace,fr_title,fr_rev_id),
 24+ UNIQUE KEY (fr_rev_id),
2425 UNIQUE KEY (fr_id)
2526 ) TYPE=InnoDB;
2627
@@ -31,7 +32,7 @@
3233 frt_value tinyint(2) NOT NULL,
3334
3435 PRIMARY KEY (frt_rev_id,frt_dimension),
35 - INDEX frt_rev_dim_val (frt_rev_id,frt_dimension,frt_value)
 36+ INDEX (frt_rev_id,frt_dimension,frt_value)
3637 ) TYPE=InnoDB;
3738
3839 -- This stores all of our transclusion revision pointers