r25346 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25345‎ | r25346 | r25347 >
Date:10:30, 31 August 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix fucked up index. Add val_type, otherwise, the latest type just overrides the previous ones.
Modified paths:
  • /trunk/extensions/Review/Review.pg.sql (modified) (history)
  • /trunk/extensions/Review/Review.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/Review/Review.sql
@@ -10,6 +10,6 @@
1111 val_ip varchar(255) NOT NULL default '',
1212
1313 PRIMARY KEY (val_id),
14 - UNIQUE KEY (val_user,val_revision),
15 - UNIQUE KEY (val_ip,val_revision)
 14+ UNIQUE KEY (val_user,val_revision,val_type),
 15+ UNIQUE KEY (val_ip,val_revision,val_type)
1616 ) TYPE=InnoDB;
\ No newline at end of file
Index: trunk/extensions/Review/Review.pg.sql
@@ -15,4 +15,4 @@
1616 PRIMARY KEY (val_id)
1717 );
1818
19 -CREATE INDEX validate_index ON validate(val_user,val_revision);
 19+CREATE INDEX validate_index ON validate(val_user,val_revision,val_type);

Status & tagging log