Add new_name_timestamp index when upgrading from 1.1
authorKevin Israel <pleasestand@live.com>
Sat, 7 Dec 2013 20:29:20 +0000 (15:29 -0500)
committerIAlex <codereview@emsenhuber.ch>
Sun, 15 Dec 2013 18:28:24 +0000 (18:28 +0000)
This index is specified in some FORCE INDEX clauses, so it has to be
present. Patch already exists; the installer just wasn't using it.

There still are some other schema inconsistencies I have to track
down, so I'm not yet adding a release note that upgrading from 1.1
has been "fixed".

Change-Id: Ibd593d3f5b63f4cb033c6c9dabaac398bb1afd19

includes/installer/MysqlUpdater.php

index cc5313a..01ee060 100644 (file)
@@ -40,6 +40,7 @@ class MysqlUpdater extends DatabaseUpdater {
                        array( 'doIndexUpdate' ),
                        array( 'addTable', 'hitcounter', 'patch-hitcounter.sql' ),
                        array( 'addField', 'recentchanges', 'rc_type', 'patch-rc_type.sql' ),
+                       array( 'addIndex', 'recentchanges', 'new_name_timestamp', 'patch-rc-newindex.sql' ),
 
                        // 1.3
                        array( 'addField', 'user', 'user_real_name', 'patch-user-realname.sql' ),