r23787 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23786‎ | r23787 | r23788 >
Date:14:52, 6 July 2007
Author:brion
Status:old
Tags:
Comment:
avoid gratuitous caps in directory names
Modified paths:
  • /trunk/extensions/CheckUser/Archives (deleted) (history)
  • /trunk/extensions/CheckUser/CheckUser.php (modified) (history)
  • /trunk/extensions/CheckUser/archives (added) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser.php
@@ -271,9 +271,9 @@
272272 # FIXME: do postgres index changes!
273273 if ($wgDBtype == 'mysql') {
274274 $wgExtNewFields[] = array('cu_changes',
275 - 'cuc_cookie_user', dirname(__FILE__) . '/Archives/patch-cuc_cookie_user.sql');
 275+ 'cuc_cookie_user', dirname(__FILE__) . '/archives/patch-cuc_cookie_user.sql');
276276 $wgExtNewIndexes[] = array('cu_changes',
277 - 'cuc_user_time', dirname(__FILE__) . '/Archives/patch-cu_changes_indexes.sql');
 277+ 'cuc_user_time', dirname(__FILE__) . '/archives/patch-cu_changes_indexes.sql');
278278 } else {
279279 $wgExtNewFields[] = array('cu_changes',
280280 'cuc_cookie_user', dirname(__FILE__) . 'TEXT');
Index: trunk/extensions/CheckUser/archives/patch-cu_changes_indexes.sql
@@ -0,0 +1,11 @@
 2+-- Improves indexes for better peformance with large result sets
 3+-- vim: autoindent syn=mysql sts=2 sw=2
 4+-- Replace /*$wgDBprefix*/ with the proper prefix
 5+
 6+ALTER TABLE /*$wgDBprefix*/cu_changes
 7+ DROP INDEX cuc_ip_hex,
 8+ DROP INDEX cuc_user,
 9+ DROP INDEX cuc_xff,
 10+ ADD INDEX cuc_ip_hex_time (cuc_ip_hex,cuc_timestamp),
 11+ ADD INDEX cuc_user_time (cuc_user,cuc_timestamp),
 12+ ADD INDEX cuc_xff_hex_time (cuc_xff_hex,cuc_timestamp);
Index: trunk/extensions/CheckUser/archives/patch-cuc_cookie_user.sql
@@ -0,0 +1,6 @@
 2+-- Adds the cookie data column needed to enable $wgCURecordCookies
 3+-- vim: autoindent syn=mysql sts=2 sw=2
 4+-- Replace /*$wgDBprefix*/ with the proper prefix
 5+
 6+ALTER TABLE /*$wgDBprefix*/cu_changes
 7+ ADD cuc_cookie_user VARCHAR(255) BINARY default NULL;

Status & tagging log