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

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