Kunal Mehta b5ee39083b SECURITY: update.php: Remove eval-stdin.php if necessary 7 роки тому
..
archives 25f2b1a5c3 Fix incorrect index name in new 1.28.0 installations 8 роки тому
benchmarks 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
dev 0d87d67d61 Move MimeMagic code to libs/mime/MimeAnalyzer.php 8 роки тому
dictionary 771964fdea ApiMain: Correct typo in variable name 9 роки тому
hhvm 535501ed62 Add a script to build an HHVM RepoAuthoritative bytecode file 8 роки тому
jsduck dc0f9b3a3a resourceloader: Deprecate mw.Map 8 роки тому
language 9850c542c6 Clean up array() syntax in docs, part VII 8 роки тому
locking a0eef4ef0d Removed expiremental LSLockManager class 11 роки тому
mssql a6403658d3 Drop index oi_name_archive_name on table oldimage in MSSQL 8 роки тому
oracle d0a0e9b417 Add primary key to change_tag and tag_summary tables 8 роки тому
postgres d0a0e9b417 Add primary key to change_tag and tag_summary tables 8 роки тому
resources 72152b9d77 Follow-up f9b4bbff: Fix typo'ed variable name 8 роки тому
sqlite d0a0e9b417 Add primary key to change_tag and tag_summary tables 8 роки тому
storage 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
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 57eaa2bf04 Merge "Improve Doxygen template used by mwdocgen.php" 8 роки тому
Maintenance.php d1215eb7a5 Small DB classes IDEA warning fixes and cleanups 8 роки тому
Makefile df29a359f8 Renames preparatory to parser tests refactor 8 роки тому
README ade945b97a Remove obsolete showCacheStats.php and showCacheStats.php 9 роки тому
addRFCandPMIDInterwiki.php 35eab7826e addRFCandPMIDInterwiki: Fix strict mode errors 8 роки тому
attachLatest.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
backup.inc d4fa565b6f Cleanup static analysis errors 8 роки тому
backupPrefetch.inc c54766586a Fix issues identified by SpaceBeforeSingleLineComment sniff 9 роки тому
cdb.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
changePassword.php 854a462dc0 Remove $wgDisableAuthManager 8 роки тому
checkBadRedirects.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
checkComposerLockUpToDate.php 82f53ce93a Suggest running composer (install|update) with --no-dev 7 роки тому
checkImages.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
checkLess.php 6117fb244f Refactor parser tests 8 роки тому
checkSyntax.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
checkUsernames.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
cleanupAncientTables.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
cleanupBlocks.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
cleanupCaps.php eb8c154c77 Let cleanupCaps.php clean up when $wgCapitalLinks is set to true 8 роки тому
cleanupEmptyCategories.php f0c8cbc6d9 Remove a few unused variables 8 роки тому
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 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
cleanupTable.inc 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
cleanupTitles.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
cleanupUploadStash.php 44947af94a Revert "Clean up user handling in UploadStash" 8 роки тому
cleanupWatchlist.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
clearInterwikiCache.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
commandLine.inc b4d5a97c3b Register importImages options without arguments as actual maintenance script options so they are usable 9 роки тому
compareParserCache.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
compareParsers.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
convertExtensionToRegistration.php 6fc7311999 Revert out Extension Registration manifest_version 2 8 роки тому
convertLinks.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
convertUserOptions.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
copyFileBackend.php e5a0d6a183 Drop check for mbstring in copyFileBackend maintenance script 8 роки тому
copyJobQueue.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
createAndPromote.php 854a462dc0 Remove $wgDisableAuthManager 8 роки тому
createCommonPasswordCdb.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
deleteArchivedFiles.php 729a258ff8 Add missing file locks to deleteArchivedFiles.php 8 роки тому
deleteArchivedRevisions.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
deleteBatch.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
deleteDefaultMessages.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
deleteEqualMessages.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
deleteOldRevisions.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
deleteOrphanedRevisions.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
deleteRevision.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
deleteSelfExternals.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
doMaintenance.php 66b0ad56df Postgres installation fixes 8 роки тому
dumpBackup.php 327d8c8b54 add option to XML dump stubs of page ranges with explicit rev_id ordering 8 роки тому
dumpIterator.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
dumpLinks.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
dumpTextPass.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
dumpUploads.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
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 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
fileOpPerfTest.php 49a1b9d9f3 Remove Profiler specific code from fileOpPerfTest 8 роки тому
findDeprecated.php 317ad7ab99 Upgrade PhpParser to 2.1 and update findDeprecated.php 8 роки тому
findHooks.php 79806e91e7 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 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
fixDoubleRedirects.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
fixExtLinksProtocolRelative.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
fixTimestamps.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
fixUserRegistration.php c0a9ab0f6d Change "slave" => "replica DB" in /maintenance 8 роки тому
formatInstallDoc.php beb1c4a0ec phpcs: More require/include is not a function 11 роки тому
generateJsonI18n.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
generateLocalAutoload.php 23c79b228c Structure test: Add autoload.php order check 8 роки тому
generateSitemap.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
getConfiguration.php 5b119a0e44 Replace uses of join() by implode() 9 роки тому
getLagTimes.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
getReplicaServer.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
getSlaveServer.php c0a9ab0f6d Change "slave" => "replica DB" in /maintenance 8 роки тому
getText.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
importDump.php 63288a8c02 importDump.php: Declare uploadCount property 7 роки тому
importImages.inc 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
importImages.php ff5abb66b4 Migrate callers to new MWFileProps::getPropsFromPath() method 8 роки тому
importSiteScripts.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
importSites.php eb46307b00 Introduce top level service locator. 9 роки тому
importTextFiles.php 628e3ce69c Fix importation of weird file names in importTextFiles.php 8 роки тому
initEditCount.php f0c8cbc6d9 Remove a few unused variables 8 роки тому
initSiteStats.php ec134c075f initSiteStats.php: Make it obvious you need to use --update 9 роки тому
install.php e257d0313f Maintenance: Use __DIR__ instead of dirname( __FILE__ ) 8 роки тому
interwiki.list c86a06ae3b Add 'pmid' to the default interwiki list, and update 'rfc' 8 роки тому
interwiki.sql c86a06ae3b Add 'pmid' to the default interwiki list, and update 'rfc' 8 роки тому
invalidateUserSessions.php fa186b2e64 Handle session reset errors in invalidateSessionsForUser.php 8 роки тому
jsparse.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
lag.php 4154c688e8 Make LoadMonitor use $serverIndexes in the cache key 8 роки тому
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 e1428ac14d Make MigrateFileRepoLayout use getErrors() 8 роки тому
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 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
nukeNS.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
nukePage.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
orphans.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
pageExists.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
parse.php 1834ee3d8e Fix numerous class/function casing 9 роки тому
patchSql.php 3a839c5927 Inject schema vars into DatabaseMysql 8 роки тому
populateBacklinkNamespace.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
populateCategory.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
populateContentModel.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
populateFilearchiveSha1.php c0a9ab0f6d Change "slave" => "replica DB" in /maintenance 8 роки тому
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 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
populateRevisionLength.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
populateRevisionSha1.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
preprocessDump.php 5a77286a1e Update formatting in maintenance/ (3/4) 11 роки тому
preprocessorFuzzTest.php 9850c542c6 Clean up array() syntax in docs, part VII 8 роки тому
protect.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
pruneFileCache.php 59db24e90b Use addDescription() instead of accessing mDescription directly 9 роки тому
purgeChangedFiles.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
purgeChangedPages.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
purgeList.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
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 f0c8cbc6d9 Remove a few unused variables 8 роки тому
rebuildImages.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
rebuildLocalisationCache.php ee8b8f1d37 Fix RebuildLocalisationCache bug from MediaWikiServices 9 роки тому
rebuildSitesCache.php eb46307b00 Introduce top level service locator. 9 роки тому
rebuildall.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
rebuildmessages.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
rebuildrecentchanges.php 4c08bf8d96 Avoid using cascadingDeletes()/cleanupTriggers() 8 роки тому
rebuildtextindex.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
refreshFileHeaders.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
refreshImageMetadata.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
refreshLinks.php 664b1b495e Add missing doUpdates() call to refreshLinks.php 7 роки тому
removeInvalidEmails.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
removeUnusedAccounts.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
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 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
rollbackEdits.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
runBatchedQuery.php c0a9ab0f6d Change "slave" => "replica DB" in /maintenance 8 роки тому
runJobs.php 6c73b32fd5 Convert JobRunner to using beginMasterChanges() 8 роки тому
runScript.php f36f49380e Add convenience maintenance script wrapper 11 роки тому
showJobs.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
showSiteStats.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
sql.php c71fde92ad Fix Database IDEA warnings about callable parameters 8 роки тому
sqlite.inc 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
sqlite.php 3c80c91f25 SQLite syntax checker: Fix support for multiple files 8 роки тому
syncFileBackend.php 8ba2ed2cc6 syncFileBackend.php: ellapsed => elapsed 8 роки тому
tables.sql d0a0e9b417 Add primary key to change_tag and tag_summary tables 8 роки тому
tidyUpBug37714.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
undelete.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
update-keys.sql d315c3bdb3 Ignore duplicate key errors in update-keys.sql 10 роки тому
update.php b5ee39083b SECURITY: update.php: Remove eval-stdin.php if necessary 7 роки тому
updateArticleCount.php 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
updateCollation.php 30f4b3c103 Replace DatabaseBase => Database in more places 8 роки тому
updateCredits.php da9d71c0dc Convert CREDITS to list of all known git contributors 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 c0a9ab0f6d Change "slave" => "replica DB" in /maintenance 8 роки тому
userDupes.inc 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
userOptions.inc 950cf6016c Rename DB_SLAVE constant to DB_REPLICA 8 роки тому
userOptions.php 783fe84d00 Let maintenance class start with a upper case letter 11 роки тому
validateRegistrationFile.php f6644c07cb registration: Improve license-name validation 8 роки тому
wrapOldPasswords.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому

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