Antoine Musso e839739f7b Let install.php detect and inject extensions 7 éve
..
archives eec016ece6 Add new index to make updateCollation.php painless 9 éve
benchmarks 5b48bf1b92 Clean up after "Kill mbstring fallbacks" 9 éve
dev 8c087b9fd1 Merge "Revert "Add executable rights for executable (bash) files"" 9 éve
dictionary 771964fdea ApiMain: Correct typo in variable name 9 éve
hiphop beb1c4a0ec phpcs: More require/include is not a function 11 éve
jsduck 3f4e016873 Upstream `isElementInViewport` from MobileFrontend 9 éve
language cb646b8aff Chinese Conversion Table Update 2016-2 8 éve
locking a0eef4ef0d Removed expiremental LSLockManager class 11 éve
mssql 0b396a3972 Revert "Revert "Merge branch 'REL1_27' into fundraising/REL1_27"" 8 éve
oracle 43e386ca16 Add id field to watchlist db table 9 éve
postgres 43e386ca16 Add id field to watchlist db table 9 éve
resources 72152b9d77 Follow-up f9b4bbff: Fix typo'ed variable name 8 éve
sqlite 43e386ca16 Add id field to watchlist db table 9 éve
storage b5656b6953 Many more function case mismatches 9 éve
term e78776373e Fixed some @params documentation (maintenance) 11 éve
.htaccess eb24ecc37b htaccessing some directories for dev using cvs tree as www tree ;) 21 éve
7zip.inc c331f11991 Update formatting in maintenance/ (1/4) 11 éve
Doxyfile ff39e4022d Doxygen: Disable verbose output 9 éve
Maintenance.php 23361af7fd Respect undeclared command line options 9 éve
Makefile dfb8390a42 Initial JSDuck implementation 12 éve
README ade945b97a Remove obsolete showCacheStats.php and showCacheStats.php 9 éve
attachLatest.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
backup.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
backupPrefetch.inc c54766586a Fix issues identified by SpaceBeforeSingleLineComment sniff 9 éve
cdb.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
changePassword.php 2aa1e3f5d1 Remove $wgDisableAuthManager 8 éve
checkBadRedirects.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
checkComposerLockUpToDate.php 17b26044dd Suggest running composer (install|update) with --no-dev 7 éve
checkImages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
checkLess.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
checkSyntax.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
checkUsernames.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupAncientTables.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupBlocks.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupCaps.php 932c37e3cb Use english messages for background use of Status::getWikiText 9 éve
cleanupImages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupPreferences.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupRemovedModules.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupSpam.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupTable.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupTitles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
cleanupUploadStash.php 1834ee3d8e Fix numerous class/function casing 9 éve
cleanupWatchlist.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
clearInterwikiCache.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
commandLine.inc b4d5a97c3b Register importImages options without arguments as actual maintenance script options so they are usable 9 éve
compareParserCache.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
compareParsers.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
convertExtensionToRegistration.php 1b31ac18c0 registration: Fix mode of files (755 -> 644) 8 éve
convertLinks.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
convertUserOptions.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
copyFileBackend.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
copyJobQueue.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
createAndPromote.php 2aa1e3f5d1 Remove $wgDisableAuthManager 8 éve
createCommonPasswordCdb.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteArchivedFiles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteArchivedRevisions.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
deleteBatch.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteDefaultMessages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteEqualMessages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteOldRevisions.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteOrphanedRevisions.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteRevision.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
deleteSelfExternals.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
doMaintenance.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
dumpBackup.php 7ba452e3c7 Replace create_function() with a closure 9 éve
dumpIterator.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
dumpLinks.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
dumpTextPass.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
dumpUploads.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
edit.php 932c37e3cb Use english messages for background use of Status::getWikiText 9 éve
eraseArchivedFile.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
eval.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
exportSites.php eb46307b00 Introduce top level service locator. 9 éve
fetchText.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fileOpPerfTest.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
findDeprecated.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
findHooks.php 386aadde29 Support short array syntax in findHooks.php 8 éve
findMissingFiles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
findOrphanedFiles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fixDefaultJsonContentPages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fixDoubleRedirects.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fixExtLinksProtocolRelative.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fixTimestamps.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
fixUserRegistration.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
formatInstallDoc.php beb1c4a0ec phpcs: More require/include is not a function 11 éve
generateJsonI18n.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
generateLocalAutoload.php 35e22af46e Fix generateLocalAutload.php 8 éve
generateSitemap.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
getConfiguration.php 5b119a0e44 Replace uses of join() by implode() 9 éve
getLagTimes.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
getSlaveServer.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
getText.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
importDump.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
importImages.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
importImages.php 932c37e3cb Use english messages for background use of Status::getWikiText 9 éve
importSiteScripts.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
importSites.php eb46307b00 Introduce top level service locator. 9 éve
importTextFiles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
initEditCount.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
initSiteStats.php ec134c075f initSiteStats.php: Make it obvious you need to use --update 9 éve
install.php e839739f7b Let install.php detect and inject extensions 7 éve
interwiki.list 610a4391db Remove the SourceForge interwiki 9 éve
interwiki.sql 610a4391db Remove the SourceForge interwiki 9 éve
jsparse.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
lag.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
makeTestEdits.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
mcc.php aa838b52de Try to fix some other broken-looking legacy maintenance script options 9 éve
mctest.php 77adf7534b Remove used of deprecated MemCachedClientforWiki 9 éve
mergeMessageFileList.php e74bc3b32e Support multiple extension-dir paths to be passed to mergeMessageFileList 9 éve
migrateFileRepoLayout.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
migrateUserGroup.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
minify.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
moveBatch.php 932c37e3cb Use english messages for background use of Status::getWikiText 9 éve
mwdoc-filter.php 222ef664fc Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments 9 éve
mwdocgen.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
mwjsduck-gen 3bbd27aa49 Rename JSDuck config to standard 'jsduck' 10 éve
namespaceDupes.php c9d885f3b4 Namespace LinkTarget under MediaWiki\Linker 9 éve
nukeNS.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
nukePage.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
orphans.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
pageExists.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
parse.php 1834ee3d8e Fix numerous class/function casing 9 éve
patchSql.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateBacklinkNamespace.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateCategory.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateContentModel.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateFilearchiveSha1.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateImageSha1.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateLogSearch.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateLogUsertext.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateParentId.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateRecentChangesSource.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateRevisionLength.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
populateRevisionSha1.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
preprocessDump.php 5a77286a1e Update formatting in maintenance/ (3/4) 11 éve
preprocessorFuzzTest.php aa838b52de Try to fix some other broken-looking legacy maintenance script options 9 éve
protect.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
pruneFileCache.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
purgeChangedFiles.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
purgeChangedPages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
purgeList.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
purgeOldText.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
purgeParserCache.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
reassignEdits.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
rebuildFileCache.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
rebuildImages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
rebuildLocalisationCache.php ee8b8f1d37 Fix RebuildLocalisationCache bug from MediaWikiServices 9 éve
rebuildSitesCache.php eb46307b00 Introduce top level service locator. 9 éve
rebuildall.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
rebuildmessages.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
rebuildrecentchanges.php b09a23f284 RebuildRecentchanges improvements 9 éve
rebuildtextindex.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
refreshFileHeaders.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
refreshImageMetadata.php ed3b46d259 refreshImageMetadata: Allow filtering by 'img_media_type' too 9 éve
refreshLinks.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
removeInvalidEmails.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
removeUnusedAccounts.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
renameDbPrefix.php 44cebea941 Update wfGetDB calls in Maintenance scripts to use getDB() 9 éve
renderDump.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
resetUserEmail.php 5ef414072c resetUserEmail: Allow resetting email without scrambling password 9 éve
resetUserTokens.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
rollbackEdits.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
runBatchedQuery.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 éve
runJobs.php e2fde0fe45 Add --wait option for runJobs.php 9 éve
runScript.php f36f49380e Add convenience maintenance script wrapper 11 éve
showJobs.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
showSiteStats.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
sql.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
sqlite.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
sqlite.php b5656b6953 Many more function case mismatches 9 éve
syncFileBackend.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
tables.sql eec016ece6 Add new index to make updateCollation.php painless 9 éve
tidyUpBug37714.php c161c46d26 Improve code suffering from PHP 5.3's lack of support for foo()[] 9 éve
undelete.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
update-keys.sql d315c3bdb3 Ignore duplicate key errors in update-keys.sql 10 éve
update.php 3d7debe94c Ignore long git hashes for eval-stdin.php 7 éve
updateArticleCount.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
updateCollation.php 0d4e0ca543 Add -f as an alias of --force to cli args of updateCollation.php 8 éve
updateDoubleWidthSearch.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
updateRestrictions.php 6e9b4f0e9c Convert all array() syntax to [] 9 éve
updateSearchIndex.php 1834ee3d8e Fix numerous class/function casing 9 éve
updateSpecialPages.php 44cebea941 Update wfGetDB calls in Maintenance scripts to use getDB() 9 éve
userDupes.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
userOptions.inc 6e9b4f0e9c Convert all array() syntax to [] 9 éve
userOptions.php 783fe84d00 Let maintenance class start with a upper case letter 11 éve
validateRegistrationFile.php 9f5b6f5aeb Fix whitespace issues around parentheses 9 éve
wrapOldPasswords.php cc61b621e3 Remove $wgAuth usage from wrapOldPasswords.php 7 éve

README

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

changePassword.php
Reset the password of a specified user

cleanupSpam.php
Mass-revert insertion of linkspam

createAndPromote.php
Create a user with administrator (and optionally, bureaucrat) permissions

deleteOldRevisions.php
Erase old revisions of pages from the database

dumpBackup.php
Backup dump script

edit.php
Edit a page to change its content

findHooks.php
Find hooks that aren't documented in docs/hooks.txt

importDump.php
XML dump importer

importImages.php
Import images into the wiki

moveBatch.php
Move a batch of pages

namespaceDupes.php
Check articles name to see if they conflict with new/existing namespaces

nukePage.php
Wipe a page and all revisions from the database

reassignEdits.php
Reassign edits from one user to another

rebuildImages.php
Update image metadata records

rebuildmessages.php
Update the MediaWiki namespace after changing site language

rebuildtextindex.php
Rebuild the fulltext search indices

refreshLinks.php
Rebuild the link tables

removeUnusedAccounts.php
Remove user accounts which have made no edits

runJobs.php
Immediately complete all jobs in the job queue

undelete.php
Undelete all revisions of a page

update.php
Check and upgrade the database schema to the current version

updateRestrictions.php
Update pages restriction to the new schema

userOptions.php
Change user options