r82971 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82970‎ | r82971 | r82972 >
Date:22:11, 28 February 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 27799) Allow filtering status changes by author

Create the prequisite index needed for this
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.php (modified) (history)
  • /trunk/extensions/CodeReview/archives/code_prop_changes_author-index.sql (added) (history)
  • /trunk/extensions/CodeReview/codereview.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.php
@@ -234,6 +234,9 @@
235235
236236 $updater->addExtensionUpdate( array( 'addIndex', 'code_comment', 'cc_author',
237237 "$base/archives/code_comment_author-index.sql", true ) );
 238+
 239+ $updater->addExtensionUpdate( array( 'addIndex', 'code_prop_changes', 'cc_author',
 240+ "$base/archives/code_prop_changes_author-index.sql", true ) );
238241 break;
239242 case 'sqlite':
240243 $updater->addNewExtension( 'CodeReview', "$base/codereview.sql" );
Index: trunk/extensions/CodeReview/codereview.sql
@@ -221,6 +221,7 @@
222222
223223 CREATE INDEX /*i*/cpc_repo_rev_time ON /*_*/code_prop_changes (cpc_repo_id, cpc_rev_id, cpc_timestamp);
224224 CREATE INDEX /*i*/cpc_repo_time ON /*_*/code_prop_changes (cpc_repo_id, cpc_timestamp);
 225+CREATE INDEX /*i*/cpc_author ON /*_*/code_prop_changes (cpc_repo_id, cpc_user_text, cpc_timestamp);
225226
226227 CREATE TABLE /*_*/code_signoffs (
227228 -- Repository ID and revision ID
Index: trunk/extensions/CodeReview/archives/code_prop_changes_author-index.sql
@@ -0,0 +1,2 @@
 2+ALTER TABLE /*$wgDBprefix*/code_prop_changes
 3+ ADD KEY /*i*/cpc_author (cpc_repo_id, cpc_user_text, cpc_timestamp);
\ No newline at end of file
Property changes on: trunk/extensions/CodeReview/archives/code_prop_changes_author-index.sql
___________________________________________________________________
Added: svn:eol-style
14 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r82975* (bug 27799) Allow filtering status changes by author...reedy22:55, 28 February 2011
r83305Fix index name typo from r82971reedy17:57, 5 March 2011

Status & tagging log