r92039 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92038‎ | r92039 | r92040 >
Date:00:38, 13 July 2011
Author:raindrift
Status:ok
Tags:schema 
Comment:
Added index for abandoned uploads maintenance script
Modified paths:
  • /trunk/phase3/maintenance/archives/patch-uploadstash.sql (modified) (history)
  • /trunk/phase3/maintenance/tables.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/archives/patch-uploadstash.sql
@@ -42,3 +42,5 @@
4343 CREATE INDEX /*i*/us_user ON /*_*/uploadstash (us_user);
4444 -- pick out files by key, enforce key uniqueness
4545 CREATE UNIQUE INDEX /*i*/us_key ON /*_*/uploadstash (us_key);
 46+-- the abandoned upload cleanup script needs this
 47+CREATE INDEX /*i*/us_timestamp ON /*_*/uploadstash (us_timestamp);
\ No newline at end of file
Index: trunk/phase3/maintenance/tables.sql
@@ -982,6 +982,8 @@
983983 CREATE INDEX /*i*/us_user ON /*_*/uploadstash (us_user);
984984 -- pick out files by key, enforce key uniqueness
985985 CREATE UNIQUE INDEX /*i*/us_key ON /*_*/uploadstash (us_key);
 986+-- the abandoned upload cleanup script needs this
 987+CREATE INDEX /*i*/us_timestamp ON /*_*/uploadstash (us_timestamp);
986988
987989
988990 --

Status & tagging log