Follow-up r101449 and friends: no need to consider LC rebuild a database update and especially it shouldn't be listed separately for every DB updater

This commit is contained in:
Max Semenik 2011-11-16 15:21:44 +00:00
parent 464d9c071b
commit ac1879e4d7
4 changed files with 2 additions and 4 deletions

View file

@ -237,6 +237,7 @@ abstract class DatabaseUpdater {
if( isset( $what['purge'] ) ) {
$this->purgeCache();
$this->rebuildLocalisationCache();
}
if ( isset( $what['stats'] ) ) {
$this->checkStats();
@ -652,7 +653,7 @@ abstract class DatabaseUpdater {
/**
* Rebuilds the localisation cache
*/
protected function doRebuildLocalisationCache() {
protected function rebuildLocalisationCache() {
/**
* @var $cl RebuildLocalisationCache
*/

View file

@ -181,7 +181,6 @@ class MysqlUpdater extends DatabaseUpdater {
array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ),
array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'),
array( 'doRebuildLocalisationCache' ),
// 1.19
array( 'addTable', 'config', 'patch-config.sql' ),

View file

@ -36,7 +36,6 @@ class OracleUpdater extends DatabaseUpdater {
array( 'addIndex', 'user', 'i02', 'patch-user_email_index.sql' ),
array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ),
array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
array( 'doRebuildLocalisationCache' ),
//1.19
array( 'addTable', 'config', 'patch-config.sql' ),

View file

@ -59,7 +59,6 @@ class SqliteUpdater extends DatabaseUpdater {
array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ),
array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'),
array( 'doRebuildLocalisationCache' ),
// 1.19
array( 'addTable', 'config', 'patch-config.sql' ),