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

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