wiki.techinc.nl/maintenance
James D. Forrester 20fd877da4 Drop experimental FileJournal system without deprecation
The feature was introduced in 2012 with d19f54602f (just before
the gerrit migration).

Change-Id: Ia3f59ad0ddeb1f610947b14e22b0694ff4c6ed84
2021-11-01 14:08:09 +11:00
..
abstractSchemaChanges Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
archives Drop experimental FileJournal system without deprecation 2021-11-01 14:08:09 +11:00
benchmarks Replace Content::getParserOutput call to ContentRenderer::getParserOutput 2021-10-20 12:11:24 +03:00
dev
includes profiler: Remove dependency on WebRequest from Profiler 2021-10-09 03:00:45 +00:00
jsduck resourceloader: Define mw.loader in its own JS file 2021-08-29 04:55:14 +01:00
language Chinese Conversion Table Update 2021-2 2021-09-20 12:31:57 +08:00
locking
mediawiki.Title Use 0 instead of "" in phpCharToUpper.json 2021-09-23 05:56:42 +00:00
postgres Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
sqlite Bump minimum required version for upgrade to 1.29 2021-09-28 17:57:57 +02:00
storage checkStorage: pass no parameters to WikiRevision::getContent() 2021-10-24 11:47:32 +00:00
term
.htaccess
addChangeTag.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
addRFCandPMIDInterwiki.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
addSite.php Add notice about local-server cache to addSite.php 2021-02-09 11:37:41 +01:00
attachLatest.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
blockUsers.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
categoryChangesAsRdf.php Use rc_new_name_timestamp index name unconditionally 2021-05-05 22:40:51 +01:00
changePassword.php maintenance: Move username/userid validation into Maintenance class 2021-07-13 15:39:04 +01:00
checkBadRedirects.php
checkComposerLockUpToDate.php
checkDependencies.php Update Legoktm's email address 2021-05-02 05:39:37 +00:00
checkImages.php
checkUsernames.php
cleanupBlocks.php Drop hard-deprecated and unused DatabaseBlock::chooseBlock 2021-05-25 16:52:05 -07:00
cleanupCaps.php
cleanupEmptyCategories.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupImages.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
cleanupInvalidDbKeys.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupPreferences.php Remove unimplemented "bogus" parts of CleanupPreferences 2021-09-29 18:47:01 +02:00
cleanupRemovedModules.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupRevActorPage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupSpam.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
cleanupTitles.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
cleanupUploadStash.php
cleanupUsersWithNoId.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
cleanupWatchlist.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
clearInterwikiCache.php
CodeCleanerGlobalsPass.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
CommandLineInc.php
compareParserCache.php
compareParsers.php
convertExtensionToRegistration.php
copyFileBackend.php
copyJobQueue.php
createAndPromote.php Create new UserGroupManager::addUserToMultipleGroups method 2021-08-30 10:24:46 -04:00
createBotPassword.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
deduplicateArchiveRevId.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
deleteArchivedFiles.php Same code style and formatting for exists-style SQL queries 2021-08-12 11:37:58 +02:00
deleteArchivedRevisions.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
deleteAutoPatrolLogs.php Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
deleteBatch.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
deleteDefaultMessages.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
deleteEqualMessages.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
deleteLocalPasswords.php
deleteOldRevisions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
deleteOrphanedRevisions.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteSelfExternals.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
deleteTag.php Remove unreachable code after exception/die/exit 2021-09-03 23:14:28 +00:00
deleteUserEmail.php Add script to delete a user email's address 2021-09-27 18:02:11 +00:00
doMaintenance.php rdbms: Move setLBFactoryTriggers from doMaintenance to service wiring 2021-04-27 23:35:20 +01:00
Doxyfile docs: Improve Doxygen aliases and map more tool annotations to @noop 2021-03-17 23:33:01 +00:00
dumpBackup.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
dumpCategoriesAsRdf.php
dumpIterator.php WikiImporter: inject services 2021-05-24 23:10:07 +02:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
emptyUserGroup.php
eraseArchivedFile.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
eval.php build: Update mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 17:19:05 +02:00
exportSites.php
fetchText.php docs: Use interface instead of real types in documentation 2021-08-26 23:57:31 +00:00
fileOpPerfTest.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
findBadBlobs.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
findClasses.php Add script for resolving class names to files 2021-04-16 11:04:39 +00:00
findDeprecated.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
findMissingActors.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
findMissingFiles.php
findOrphanedFiles.php
fixDefaultJsonContentPages.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
fixDoubleRedirects.php
fixExtLinksProtocolRelative.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
fixMergeHistoryCorruption.php Remove unneeded variable assignment 2021-09-03 22:51:22 +00:00
fixTimestamps.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
fixUserRegistration.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
formatInstallDoc.php
generateJsonI18n.php
generateLocalAutoload.php
generateSchemaChangeSql.php Add index on oldimage.oi_timestamp 2021-05-29 20:44:32 +02:00
generateSchemaSql.php Remove custom table options from 'revision' table 2021-05-23 21:57:04 +01:00
generateSitemap.php Replace deprecated Language function in generateSitemap.php script 2021-08-04 02:58:28 +02:00
getConfiguration.php Remove unneeded variable assignment 2021-09-03 22:51:22 +00:00
getLagTimes.php
getReplicaServer.php
getText.php Add typehints to several methods 2021-08-31 16:19:13 +00:00
importDump.php importDump.php: handle fopen error 2021-10-17 21:34:41 -07:00
importImages.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
importSites.php
importSiteScripts.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
importTextFiles.php Use a constant for 'Maintenance script' username 2021-05-03 23:34:26 +02:00
initEditCount.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
initSiteStats.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
initUserPreference.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
install.php
interwiki.list
invalidateBotPasswords.php Add maintenance script to invalidate a users bot passwords 2021-07-13 15:39:11 +01:00
invalidateUserSessions.php Fix class name of InvalidateUserSessions 2021-08-23 19:03:39 +01:00
jsparse.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
lag.php
Maintenance.php
Makefile
makeTestEdits.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
manageForeignResources.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
manageJobs.php Define a batch size in maintenance/manageJobs.php 2021-03-09 16:50:51 +01:00
mcc.php
mctest.php
mergeMessageFileList.php maintenance: Avoid missing l10n cache error in mergeMessageFileList 2021-03-02 21:41:23 -08:00
migrateActors.php
migrateArchiveText.php Factor out LoggedUpdateMaintenance::setForce() 2021-06-24 16:21:53 +10:00
migrateComments.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
migrateFileRepoLayout.php Replace getMasterDB methods with getPrimaryDB 2021-07-14 16:21:04 -07:00
migrateImageCommentTemp.php Factor out LoggedUpdateMaintenance::setForce() 2021-06-24 16:21:53 +10:00
migrateRevisionActorTemp.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
migrateUserGroup.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
moveBatch.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
mwdoc-filter.php
mwdocgen.php Remove dead variables and functions and unneeded parenthesis 2021-08-13 21:41:59 +02:00
mwjsduck-gen
mysql.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
namespaceDupes.php namespaceDupes.php: Handle invalid titles 2021-10-16 12:26:24 +00:00
nukeNS.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
nukePage.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
orphans.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
pageExists.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
parse.php
patchSql.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateArchiveRevId.php Add typehints to several methods 2021-08-31 16:19:13 +00:00
populateBacklinkNamespace.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateChangeTagDef.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateContentTables.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateExternallinksIndex60.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateFilearchiveSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateImageSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateInterwiki.php Avoid using deprecated wfGetDB() in two maintenance scripts 2021-07-07 16:42:15 +02:00
populateIpChanges.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populatePPSortKey.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRecentChangesSource.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionLength.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
populateRevisionSha1.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
preprocessorFuzzTest.php Emit deprecation warnings reading from $wgUser 2021-09-15 20:17:04 -07:00
protect.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
pruneFileCache.php
purgeChangedFiles.php
purgeChangedPages.php
purgeExpiredBlocks.php
purgeExpiredUserrights.php
purgeExpiredWatchlistItems.php
purgeList.php
purgeMessageBlobStore.php rebuildLocalisationCache: Add --skip-message-purge and accompanying script 2021-04-07 00:36:59 +01:00
purgeModuleDeps.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
purgeOldText.php
purgePage.php UndeletePage cleanup, part 1 2021-09-21 18:13:57 +02:00
purgeParserCache.php Remove unreachable code after exception/die/exit 2021-09-03 23:14:28 +00:00
README
reassignEdits.php Schema migration for revison_actor_temp table removal 2021-07-14 08:29:04 +10:00
rebuildall.php
rebuildFileCache.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
rebuildImages.php Manual and automatic image metadata reserialization 2021-06-26 22:50:17 +00:00
rebuildLocalisationCache.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
rebuildmessages.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rebuildrecentchanges.php Avoid using deprecated wfGetDB() in two maintenance scripts 2021-07-07 16:42:15 +02:00
rebuildtextindex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
recountCategories.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
refreshExternallinksIndex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
refreshFileHeaders.php Cleanup mixed space/tab line indent 2021-09-04 00:52:31 +02:00
refreshImageMetadata.php Add --sleep option to refreshImageMetadata.php 2021-06-29 21:10:41 +02:00
refreshLinks.php Convert TrackingCategories to a service with DI 2021-10-08 16:36:20 -04:00
removeInvalidEmails.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
removeUnusedAccounts.php Miscellaneous master -> primary switches for private functions and variables 2021-09-03 20:14:41 +00:00
renameDbPrefix.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
renameRestrictions.php renameRestrictions.php: Update protected_titles as well 2021-09-05 21:02:18 +02:00
renderDump.php Replace Content::getParserOutput call to ContentRenderer::getParserOutput 2021-10-20 12:11:24 +03:00
resetAuthenticationThrottle.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
resetPageRandom.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
resetUserEmail.php Make stricter type checks on user email and real name 2021-04-01 15:21:41 -06:00
resetUserTokens.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
rollbackEdits.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
runBatchedQuery.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
runJobs.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
runScript.php
shell.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
showJobs.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
showSiteStats.php
sql.php sql.php: Fix typos 2021-09-23 23:12:28 +00:00
Sqlite.php Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
SqliteMaintenance.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
TableCleanup.php TableCleanup: stop writing to $wgUser 2021-06-02 07:04:23 +00:00
tables-generated.sql Rename change_tag indexes to have ct_ prefix 2021-06-08 17:57:15 +01:00
tables.json tables.json: add a missing space after period 2021-09-02 21:00:20 +00:00
tables.sql Migrate searchindex to abstract schema 2021-05-27 15:01:24 +02:00
tidyUpT39714.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
undelete.php Move code from PageArchive to a new UndeletePage command 2021-09-21 16:11:29 +00:00
update-keys.sql
update.php Bump minimum required version for upgrade to 1.29 2021-09-28 17:57:57 +02:00
updateArticleCount.php Remove trailing dot/space from some exception messages and output strings 2021-08-04 02:38:48 +00:00
updateCollation.php collation: Create CollationFactory service 2021-09-04 02:46:06 +02:00
updateCredits.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
updateExtensionJsonSchema.php
updateRestrictions.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSearchIndex.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
updateSpecialPages.php maintenance: Cleanup use of exit in Maintenance::execute implementation 2021-08-30 19:48:27 +00:00
uppercaseTitlesForUnicodeTransition.php uppercaseTitlesForUnicodeTransition: improve userlist format 2021-10-04 14:56:01 -07:00
userOptions.php userOptions.php: allow specifying a user ID range to run on 2021-06-02 22:51:35 +02:00
validateRegistrationFile.php
version.php
view.php
wrapOldPasswords.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00

== 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