aboutsummaryrefslogtreecommitdiffstats
path: root/docs/maintenance.txt
Commit message (Collapse)AuthorAgeFilesLines
* Remove superfluous spacesFomafix2024-07-031-1/+1
| | | | Change-Id: I6ef0953be7b9a0baac5fb96df4d254a463fb7298
* docs: Use ::class for class name resolution in demo codeUmherirrender2022-06-161-2/+2
| | | | Change-Id: I7282a2bbf7838e55df71d61cae5ce25f740b412c
* Fix 404 link for Maintenance class doxygen docAmmarpad2021-01-311-1/+1
| | | | Change-Id: I15c0b55d1d0269e0f26887055e648de266291abf
* Clean up some old readme files and remove references to SVNThis, that and the other2013-11-161-1/+1
| | | | | | | | | | | | | | | | | docs/README: Updated links, got rid of 2008 date at top of file docs/maintenance.txt: Updated link extensions/README: Some cleanup, added link to new git.wikimedia.org includes/DefaultSettings.php: SVN -> Git for udpprofile includes/profiler/ProfilerSimpleUDP.php: ditto languages/MessagesRo.php: removed link to mime.types on SVN from the mimesearch-summary message. This file seems to have been deleted from the modern-day Git repository maintenance/postgres/mediawiki_mysql2postgres.pl: removed SVN magic words That takes care of most of the remaining references to SVN etc. Bug: 38714 Change-Id: I261921df4b4c0545658d6d38c5f3c1f9dfa63ad1
* phpcs: Fix WhiteSpace.LanguageConstructSpacing warningsTimo Tijhof2013-05-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Squiz.WhiteSpace.LanguageConstructSpacing: Language constructs must be followed by a single space; expected "require_once expression" but found "require_once(expression)" It is a keyword (e.g. like `new`, `return` and `print`). As such the parentheses don't make sense. Per our code conventions, we use a space after keywords like these. We appeared to have an unwritten exception for `require` that doesn't make sense. About 60% of require/include usage was missing the space and/or had superfluous parentheses. It is as silly as print("foo") or return("foo"), it works because keywords have no significance for whitespace between it and the expression that follows, and since experessions can be wrapped in parentheses for clarity (e.g. when doing string concatenation or mathematical operations) the parenthesis before and after basiclaly just ignored. Change-Id: I2df2f80b8123714bea7e0771bf94b51ad5bb4b87
* normalize filenames of maintenance scriptsWaldir Pimenta2013-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use lowerCamelCase.php format for all files (per [[mw:CC#File_naming]]), and make filenames more specific: - clear_stats.php -> clearCacheStats.php - clear_interwiki_cache.php -> clearInterwikiCache.php - initStats.php -> initSiteStats.php - proxy_check.php -> proxyCheck.php - stats.php -> showCacheStats.php - showStats.php -> showSiteStats.php Also changed the class names accordingly (per [[mw:CC/PHP#Naming]]), and make class names more specific: - clear_stats -> ClearCacheStats - InitStats -> InitSiteStats - CacheStats -> ShowCacheStats - ShowStats -> ShowSiteStats Updated files that made references to the changed files/classes: - DefaultSettings.php and SpecialBlockme.php (proxy_check.php -> proxyCheck.php) - maintenance/showSiteStats.php (initStats.php -> initSiteStats.php) - maintenance/README and docs/memcached.txt (stats.php -> showCacheStats.php) - docs/maintenance.txt and docs/memcached.txt (clear_stats.php -> clearCacheStats.php) Thanks Hashar for the initial help and encouragement :) Change-Id: I60f76fc971e06e1b710dcda35f9c2d931b93bdd7
* Fix concern raised by Brion in r74108 (but has really existed since the ↵Chad Horohoe2011-01-131-1/+1
| | | | | | | | | | | maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself. Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild(). Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80205
* * maintenance.txt: the execute() method must be public to match ↵Alexandre Emsenhuber2009-08-161-1/+1
| | | | | | | | | Maintenance's one * design.txt: whitespaces fix Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55151
* Merge maintenance-work branch (now with less errors!):Chad Horohoe2009-08-021-0/+57
| | | | | | | | | | | * Docs have been updated to indicate the standard on how to write maintenance scripts (MW.org docs will follow) Have ported vast majority of maintenance scripts to new format. Remaining ones (mostly FiveUpgrade-related) are a bit more tricky. commandLine.inc is untouched for now. Many have gotten code-style updates as well. Deleted .inc files were only used by their .php counterparts, and have been merged into single files. * (bug 11867) Lock error on redirect table when running orphans.php * (bug 16322) Allow maintenance scripts to accept DB user/pass over input or params * (bug 18566) Maintenance script to un/protect pages * initStats overhaul, now uses class SiteStatsInit. Also fixes bug 18930 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54225
* Revert r52336 "Merge maintenance-work branch:"Brion Vibber2009-06-241-54/+0
| | | | | | | | Seems to have broken a bunch of stuff. Don't commit giant non-critical changes that break Setup.php and all maint scripts. Thanks! Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/52340
* Merge maintenance-work branch:Chad Horohoe2009-06-241-0/+54
* (bug 16322) Allow maint scripts to accept DB user/pass over input or params if no AdminSettings.php * (bug 18768) Remove AdminSettings.php from MediaWiki core * (bug 19157) createAndPromote error on bad password * (bug 14201) Create AdminSettings.php during wiki installation, in the same way as LocalSettings.php * Introduce new Maintenance class framework and port a good number of scripts over; the ones that are left are a little more complicated. Read the docs. * Not deleting "unused" files yet, don't want to break everything at once :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/52336