From 2a7478b4fb3313d7b5d8f115feec2760a38a4057 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 3 Sep 2012 20:10:09 +0200 Subject: [PATCH] Improve documentation of maintenance scripts. Change-Id: Id7a04ff816dc47a8cc81a4da5ab0dff26b688bd5 --- maintenance/update.php | 5 +++++ maintenance/updateArticleCount.php | 10 ++++++++-- maintenance/updateCollation.php | 14 ++++++++++---- maintenance/updateDoubleWidthSearch.php | 7 ++++++- maintenance/updateRestrictions.php | 6 ++++++ maintenance/updateSearchIndex.php | 7 ++++++- maintenance/updateSpecialPages.php | 9 +++++++-- maintenance/userOptions.php | 4 +--- maintenance/waitForSlave.php | 7 ++++++- 9 files changed, 55 insertions(+), 14 deletions(-) diff --git a/maintenance/update.php b/maintenance/update.php index 78e88273a3..877f1366a3 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -34,6 +34,11 @@ if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), ' $wgUseMasterForMaintenance = true; require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script to run database schema updates. + * + * @ingroup Maintenance + */ class UpdateMediaWiki extends Maintenance { function __construct() { diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index 730a1f64e3..4d49dd2dbb 100644 --- a/maintenance/updateArticleCount.php +++ b/maintenance/updateArticleCount.php @@ -1,7 +1,7 @@ addOption( 'target-collation', 'Set this to the new collation type to ' . - 'use instead of $wgCategoryCollation. Usually you should not use this, ' . - 'you should just update $wgCategoryCollation in LocalSettings.php.', + 'use instead of $wgCategoryCollation. Usually you should not use this, ' . + 'you should just update $wgCategoryCollation in LocalSettings.php.', false, true ); $this->addOption( 'dry-run', 'Don\'t actually change the collations, just ' . 'compile statistics.' ); diff --git a/maintenance/updateDoubleWidthSearch.php b/maintenance/updateDoubleWidthSearch.php index bcceab3999..dc7398ad16 100644 --- a/maintenance/updateDoubleWidthSearch.php +++ b/maintenance/updateDoubleWidthSearch.php @@ -1,6 +1,6 @@ addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false ); -- 2.20.1