Index: trunk/phase3/includes/installer/SqliteUpdater.php |
— | — | @@ -59,6 +59,7 @@ |
60 | 60 | array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ), |
61 | 61 | array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), |
62 | 62 | array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'), |
| 63 | + array( 'doRebuildLocalisationCache' ), |
63 | 64 | |
64 | 65 | // 1.19 |
65 | 66 | array( 'addTable', 'config', 'patch-config.sql' ), |
Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -619,4 +619,13 @@ |
620 | 620 | $cl->execute(); |
621 | 621 | $this->output( "done.\n" ); |
622 | 622 | } |
| 623 | + |
| 624 | + protected function doRebuildLocalisationCache() { |
| 625 | + global $wgLocalisationCacheConf; |
| 626 | + $wgLocalisationCacheConf['forceRecache'] = true; |
| 627 | + $cl = $this->maintenance->runChild( 'RebuildLocalisationCache', 'rebuildLocalisationCache.php' ); |
| 628 | + $this->output( "Rebuilding Localisation Cache... " ); |
| 629 | + $cl->execute(); |
| 630 | + $this->output( "done.\n" ); |
| 631 | + } |
623 | 632 | } |
Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -181,6 +181,7 @@ |
182 | 182 | array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ), |
183 | 183 | array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), |
184 | 184 | array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql'), |
| 185 | + array( 'doRebuildLocalisationCache' ), |
185 | 186 | |
186 | 187 | // 1.19 |
187 | 188 | array( 'addTable', 'config', 'patch-config.sql' ), |
Index: trunk/phase3/includes/installer/OracleUpdater.php |
— | — | @@ -36,6 +36,7 @@ |
37 | 37 | array( 'addIndex', 'user', 'i02', 'patch-user_email_index.sql' ), |
38 | 38 | array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ), |
39 | 39 | array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), |
| 40 | + array( 'doRebuildLocalisationCache' ), |
40 | 41 | |
41 | 42 | //1.19 |
42 | 43 | array( 'addTable', 'config', 'patch-config.sql' ), |
— | — | @@ -43,7 +44,7 @@ |
44 | 45 | array( 'addTable', 'globaltemplatelinks', 'patch-globaltemplatelinks.sql' ), |
45 | 46 | array( 'addTable', 'globalnamespaces', 'patch-globalnamespaces.sql' ), |
46 | 47 | array( 'addTable', 'globalinterwiki', 'patch-globalinterwiki.sql' ), |
47 | | - |
| 48 | + |
48 | 49 | // till 2.0 i guess |
49 | 50 | array( 'doRebuildDuplicateFunction' ), |
50 | 51 | |