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