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

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