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

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