r97525 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97524‎ | r97525 | r97526 >
Date:18:24, 19 September 2011
Author:asher
Status:ok (Comments)
Tags:
Comment:
customized patch-fr_page_rev-index.sql for wmf
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/FlaggedRevs/schema/mysql/patch-fr_page_rev-index-wmf1.8.sql (added) (history)
  • /branches/wmf/1.18wmf1/maintenance/upgrade-1.18wmf1-1.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/upgrade-1.18wmf1-1.php
@@ -74,7 +74,7 @@
7575 if ( isFlaggedRevsWiki( $wiki ) ) {
7676 echo " FlaggedRevs";
7777 sourceUpgradeFile( $db, dirname(__FILE__).'/../extensions/FlaggedRevs/schema/mysql/' .
78 - 'patch-fr_page_rev-index.sql' );
 78+ 'patch-fr_page_rev-index-wmf1.8.sql' );
7979 }
8080
8181 if ( $db->fieldExists( 'article_feedback', 'aa_page_id' ) ) {
Index: branches/wmf/1.18wmf1/extensions/FlaggedRevs/schema/mysql/patch-fr_page_rev-index-wmf1.8.sql
@@ -0,0 +1,11 @@
 2+ALTER TABLE /*_*/flaggedrevs
 3+ ADD COLUMN fr_rev_timestamp varbinary(14) NOT NULL default '',
 4+-- Old (fr_page_id,fr_rev_id) key
 5+ DROP PRIMARY KEY;
 6+
 7+-- Take the first row of any duplicates on new key
 8+ALTER IGNORE TABLE /*_*/flaggedrevs ADD PRIMARY KEY (fr_rev_id);
 9+
 10+CREATE INDEX /*i*/page_rev ON /*_*/flaggedrevs (fr_page_id,fr_rev_id);
 11+CREATE INDEX /*i*/page_time ON /*_*/flaggedrevs (fr_page_id,fr_rev_timestamp);
 12+CREATE INDEX /*i*/page_qal_time ON /*_*/flaggedrevs (fr_page_id,fr_quality,fr_rev_timestamp);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97519schema migration for wmf 1.18 releaseasher17:59, 19 September 2011

Comments

#Comment by Aaron Schulz (talk | contribs)   19:07, 19 September 2011

wmf1.8? I would just call it wmf.

Status & tagging log