IAlex has uploaded a new change for review.
https://gerrit.wikimedia.org/r/70371
Change subject: (bug 50025) rebuildall.php script needs database admin rights
......................................................................
(bug 50025) rebuildall.php script needs database admin rights
It calls rebuildtextindex.php, which use the ALTER command.
bug: 50025
Change-Id: Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f
---
M maintenance/rebuildall.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/71/70371/1
diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php
index 54444e9..1268d20 100644
--- a/maintenance/rebuildall.php
+++ b/maintenance/rebuildall.php
@@ -35,6 +35,10 @@
$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' ) {
--
To view, visit https://gerrit.wikimedia.org/r/70371
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits