From: Alexandre Emsenhuber Date: Tue, 25 Jun 2013 06:14:20 +0000 (+0200) Subject: (bug 50025) rebuildall.php script needs database admin rights X-Git-Tag: 1.31.0-rc.0~19360^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=f174d2c40493b77c9203689f300856da3a75e5e5;p=lhc%2Fweb%2Fwiklou.git (bug 50025) rebuildall.php script needs database admin rights It calls rebuildtextindex.php, which use the ALTER command. Bug: 50025 Change-Id: Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f --- diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php index 54444e9aa5..1268d20916 100644 --- a/maintenance/rebuildall.php +++ b/maintenance/rebuildall.php @@ -35,6 +35,10 @@ class RebuildAll extends Maintenance { $this->mDescription = "Rebuild links, text index and recent changes"; } + public function getDbType() { + return Maintenance::DB_ADMIN; + } + public function execute() { // Rebuild the text index if ( wfGetDB( DB_SLAVE )->getType() != 'postgres' ) {