Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4240,3 +4240,8 @@ |
4241 | 4241 | * To disable file delete/restore temporarily |
4242 | 4242 | */ |
4243 | 4243 | $wgUploadMaintenance = false; |
| 4244 | + |
| 4245 | +/** |
| 4246 | + * Use old names for change_tags indices. |
| 4247 | + */ |
| 4248 | +$wgOldChangeTagsIndex = false; |
Index: trunk/phase3/includes/ChangeTags.php |
— | — | @@ -125,7 +125,9 @@ |
126 | 126 | // Add an INNER JOIN on change_tag |
127 | 127 | |
128 | 128 | // FORCE INDEX -- change_tags will almost ALWAYS be the correct query plan. |
129 | | - $options['USE INDEX'] = array( 'change_tag' => 'change_tag_tag_id' ); |
| 129 | + global $wgOldChangeTagsIndex; |
| 130 | + $index = $wgOldChangeTagsIndex ? 'ct_tag' : 'change_tag_tag_id'; |
| 131 | + $options['USE INDEX'] = array( 'change_tag' => $index ); |
130 | 132 | unset( $options['FORCE INDEX'] ); |
131 | 133 | $tables[] = 'change_tag'; |
132 | 134 | $join_conds['change_tag'] = array( 'INNER JOIN', "ct_$join_cond=$join_cond" ); |