r97921 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97920‎ | r97921 | r97922 >
Date:14:52, 23 September 2011
Author:catrope
Status:ok
Tags:
Comment:
Add updater for r97920
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.hooks.php (modified) (history)
  • /trunk/extensions/MoodBar/sql/mbf_timestamp.sql (added) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/sql/mbf_timestamp.sql
@@ -0,0 +1,5 @@
 2+-- Add some indexes to the moodbar_feedback table
 3+
 4+CREATE INDEX /*i*/mbf_userid_ip_timestamp ON /*_*/moodbar_feedback (mbf_user_id, mbf_user_ip, mbf_timestamp);
 5+CREATE INDEX /*i*/mbf_type_userid_ip_timestamp ON /*_*/moodbar_feedback (mbf_type, mbf_user_id, mbf_user_ip, mbf_timestamp);
 6+CREATE INDEX /*i*/mbf_timestamp ON /*_*/moodbar_feedback (mbf_timestamp);
Property changes on: trunk/extensions/MoodBar/sql/mbf_timestamp.sql
___________________________________________________________________
Added: svn:eol-style
17 + native
Index: trunk/extensions/MoodBar/MoodBar.hooks.php
@@ -74,6 +74,10 @@
7575 $updater->addExtensionUpdate( array( 'addField', 'moodbar_feedback',
7676 'mbf_user_editcount', dirname(__FILE__).'/sql/mbf_user_editcount.sql', true )
7777 );
 78+
 79+ $updater->addExtensionUpdate( array( 'addIndex', 'moodbar_feedback',
 80+ 'mbf_timestamp', dirname( __FILE__ ) . '/sql/mbf_timestamp.sql', true )
 81+ );
7882
7983 return true;
8084 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97920MoodBar: Add list=moodbarcomments API module, and add indexes to go with itcatrope14:49, 23 September 2011

Status & tagging log