wiki.techinc.nl/maintenance
Umherirrender 72751cbecb Replace deprecated Language::getMessagesFileName
Bug: T325982
Change-Id: I3c583d7d6914dd46311fd379168ee7dbae71707b
2022-12-28 15:56:30 +00:00
..
abstractSchemaChanges schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
archives schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
benchmarks Merge "SettingsBuilder: introduce a "registration" stage" 2022-12-19 00:25:33 +00:00
dev Fix many typos in comments 2022-05-10 12:46:11 +00:00
includes MaintenanceRunner: find script by name 2022-12-21 07:11:04 +00:00
jsduck mediawiki.base: Restore and document importScript "once" behaviour 2022-09-01 02:27:54 +02:00
language Replace deprecated Language::getMessagesFileName 2022-12-28 15:56:30 +00:00
mediawiki.Title generatePhpCharToUpperMappings: avoid fetching service in loop 2022-12-21 07:35:36 +00:00
postgres schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
sqlite schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
storage Merge "Update moveToExternal and resolveStubs" 2022-12-20 04:00:34 +00:00
.htaccess
addChangeTag.php addChangeTag: Ensure system user can create tag 2022-01-18 17:52:47 +01:00
addRFCandPMIDInterwiki.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
addSite.php Call parent constructor of AddSite maintenance script first 2022-06-23 23:14:57 +02:00
attachLatest.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
blockUsers.php Remove unneeded initalize of local variables 2022-09-21 21:29:21 +02:00
categoryChangesAsRdf.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
changePassword.php
checkBadRedirects.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
checkComposerLockUpToDate.php Fix casing of class and function name usages 2022-12-04 19:09:30 +00:00
checkDependencies.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
checkImages.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
checkUsernames.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
cleanupBlocks.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
cleanupCaps.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
cleanupEmptyCategories.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
cleanupImages.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
cleanupInvalidDbKeys.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
cleanupPreferences.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
cleanupRemovedModules.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
cleanupSpam.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
cleanupTitles.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
cleanupUploadStash.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
cleanupUsersWithNoId.php maintenance: Replace deprecated User::idFromName 2022-12-22 18:29:27 +01:00
cleanupWatchlist.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
clearInterwikiCache.php interwiki: Overall clean up and simplification 2022-09-29 19:46:35 +00:00
CodeCleanerGlobalsPass.php
CommandLineInc.php
compareParserCache.php
compareParsers.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
convertExtensionToRegistration.php Remove $wgParserTestFiles, deprecated in MW 1.30 2022-10-13 09:22:22 -04:00
copyFileBackend.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
copyJobQueue.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
createAndPromote.php createAndPromote.php typo fix: acccount -> account 2022-04-27 16:10:40 +00:00
createBotPassword.php maintenance: Replace deprecated User::idFromName 2022-12-21 20:12:14 +01:00
deduplicateArchiveRevId.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
deleteArchivedFiles.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-19 19:11:24 +01:00
deleteArchivedRevisions.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
deleteAutoPatrolLogs.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
deleteBatch.php Merge "maintenance: Use $this->waitForReplication()" 2022-10-27 12:22:24 +00:00
deleteDefaultMessages.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
deleteEqualMessages.php Various doc fixes about false on method arguments/return types 2022-11-10 19:23:46 +00:00
deleteLocalPasswords.php
deleteOldRevisions.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
deleteOrphanedRevisions.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
deleteSelfExternals.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
deleteTag.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
deleteUserEmail.php Use User::isRegistered for readability instead of ::getId falsy check 2022-04-29 21:15:57 +02:00
doMaintenance.php Introduce run.php for running maintenance scripts 2022-12-21 06:52:04 +00:00
Doxyfile Add some helpers to filter properties out of var_dump() 2022-10-12 12:42:23 -04:00
dumpBackup.php
dumpCategoriesAsRdf.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
dumpIterator.php Remove WikiRevision::downloadSource 2022-11-04 09:24:15 -04:00
dumpLinks.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
dumpTextPass.php
dumpUploads.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
edit.php Reorg: Move RawMessage to under language/ 2022-12-16 11:30:19 +01:00
emptyUserGroup.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
eraseArchivedFile.php maintenance: Use SelectQueryBuilder to construct queries 2022-07-22 20:03:36 +01:00
eval.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
exportSites.php (import|export)Sites.php: Move parent::__construct call above addDescription 2022-07-31 22:08:45 +02:00
fetchText.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
fileOpPerfTest.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
findBadBlobs.php Use buildComparison() instead of raw SQL in more maintenance scripts 2022-11-15 09:54:05 +01:00
findClasses.php
findDeprecated.php Remove unused key variable from foreach loops 2022-09-21 21:18:43 +02:00
findMissingActors.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
findMissingFiles.php
findOrphanedFiles.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
fixDefaultJsonContentPages.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
fixDoubleRedirects.php fixDoubleRedirects.php: Work only with proper titles 2022-10-04 19:23:07 +00:00
fixExtLinksProtocolRelative.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
fixMergeHistoryCorruption.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
fixTimestamps.php Replace remaining usages of IDatabase::fetchObject() 2022-01-19 01:42:16 +01:00
fixUserRegistration.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
formatInstallDoc.php
generateConfigSchema.php Settings: add support for obsolete config 2022-10-14 15:00:43 +02:00
generateJsonI18n.php maintenance: Check return of preg_match_all in generateJsonI18n.php 2022-03-29 00:32:10 +00:00
generateLocalAutoload.php AutoLoader: provide methods for registering classes 2022-05-10 13:55:53 +10:00
generateSchemaChangeSql.php schema: Remove postgres hack from generateSchemaChangeSql.php 2022-07-21 22:08:12 +02:00
generateSchemaSql.php schema: Move postgres special about TEXT/BYTEA to MWPlatform override 2022-07-21 00:10:11 +02:00
generateSitemap.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
getConfiguration.php Remove unused key variable from foreach loops 2022-09-21 21:18:43 +02:00
getLagTimes.php
getReplicaServer.php
getText.php
grep.php Add "grep.php" to search pages for a regex 2022-02-23 14:20:18 +11:00
importDump.php rdbms: remove IMaintainableDatabase::deadlockLoop() 2022-12-20 23:34:46 +00:00
importImages.php Rewrite parts of importImages maintenance script for readability 2022-12-16 22:42:56 +00:00
importSites.php (import|export)Sites.php: Move parent::__construct call above addDescription 2022-07-31 22:08:45 +02:00
importSiteScripts.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
importTextFiles.php Remove WikiRevision::downloadSource 2022-11-04 09:24:15 -04:00
initEditCount.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
initSiteStats.php
initUserPreference.php
install.php Introduce run.php for running maintenance scripts 2022-12-21 06:52:04 +00:00
interwiki.list
invalidateBotPasswords.php
invalidateUserSessions.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
jsparse.php maintenance: Swap order of code in jsparse.php 2022-03-30 19:17:43 +00:00
lag.php
Maintenance.php Allow main settings file to be selected via env variable. 2022-02-06 21:13:00 +01:00
Makefile
makeTestEdits.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
manageForeignResources.php Reorg: Move ForeignResourceManager to ResourceLoader directory 2022-11-08 10:54:17 +01:00
manageJobs.php Replace deprecated JobQueueGroup::singleton() 2022-01-27 21:37:50 +01:00
mcc.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
mctest.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
mergeMessageFileList.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
migrateExternallinks.php Add migrateExternallinks maintenance script 2022-11-25 22:08:45 +01:00
migrateFileRepoLayout.php scripts: Use real bool in options for FileBackend::doOperations 2022-03-08 00:49:13 +01:00
migrateLinksTable.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
migrateRevisionActorTemp.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
migrateUserGroup.php
moveBatch.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
mwdoc-filter.php
mwdocgen.php docs: Remove non-existent 'static' directory from Doxygen config 2022-09-10 01:18:18 +02:00
mwjsduck-gen
mysql.php Merge "rdbms: remove DB domain from more LoadBalancer methods" 2022-10-25 22:33:05 +00:00
namespaceDupes.php Various doc fixes about false and null on method arguments/return types 2022-11-03 18:55:47 +01:00
nukeNS.php
nukePage.php
pageExists.php
parse.php Replace deprecated calls ParserOptions::newCanonical( 'canonical' ) 2022-06-16 14:22:24 +01:00
patchSql.php
populateArchiveRevId.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
populateBacklinkNamespace.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
populateChangeTagDef.php Convert various callers to LoadBalancer::getConnectionRef() 2022-02-03 16:48:34 -08:00
populateFilearchiveSha1.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
populateImageSha1.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
populateInterwiki.php Various doc fixes about false on method arguments/return types 2022-11-10 19:23:46 +00:00
populateIpChanges.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
populatePPSortKey.php Use buildComparison() instead of raw SQL in more maintenance scripts 2022-11-15 09:54:05 +01:00
populateRecentChangesSource.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
populateRevisionLength.php
populateRevisionSha1.php
preprocessorFuzzTest.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
protect.php Remove usages of deprecated Title::getRestrictionTypes 2022-04-13 20:34:10 +00:00
pruneFileCache.php
pruneUnusedLinkTargetRows.php pruneUnusedLinkTargetRows.php: Fix batching and DELETE query 2022-09-19 08:54:15 -04:00
purgeChangedFiles.php Replace some in_array( array_keys() ) with simple isset() 2022-11-14 17:56:34 +01:00
purgeChangedPages.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
purgeExpiredBlocks.php
purgeExpiredUserrights.php
purgeExpiredWatchlistItems.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
purgeList.php purgeList.php: Clarify that --db-touch is only for purging by title 2022-09-19 18:39:52 +00:00
purgeMessageBlobStore.php
purgeModuleDeps.php
purgeOldText.php
purgePage.php
purgeParserCache.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
README
reassignEdits.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
rebuildall.php
rebuildFileCache.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
rebuildImages.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
rebuildLocalisationCache.php Add --dry-run flag to rebuildLocalisationCache.php 2022-08-25 14:45:30 -07:00
rebuildmessages.php
rebuildrecentchanges.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
rebuildtextindex.php Replace remaining usages of IDatabase::fetchObject() 2022-01-19 01:42:16 +01:00
recountCategories.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
refreshExternallinksIndex.php Merge "maintenance: Use $this->waitForReplication()" 2022-10-27 12:22:24 +00:00
refreshFileHeaders.php Replace trivial usages of code in strings with concatenation 2022-08-26 12:26:44 +00:00
refreshImageMetadata.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
refreshLinks.php Merge "Use buildComparison() instead of raw SQL in more maintenance scripts" 2022-12-01 14:51:58 +00:00
removeInvalidEmails.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
removeUnusedAccounts.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
renameDbPrefix.php Maintenance scripts: replace most globals with Config 2022-07-12 21:13:19 +02:00
renameRestrictions.php
renderDump.php Replace trivial usages of code in strings with concatenation 2022-08-26 12:26:44 +00:00
resetAuthenticationThrottle.php Use MainConfigNames instead of string literals, #5 2022-04-27 18:46:29 +03:00
resetPageRandom.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
resetUserEmail.php Use User::isRegistered for readability instead of ::getId falsy check 2022-04-29 21:15:57 +02:00
rollbackEdits.php Reorg: Move ActorMigration and ActorMigrationBase to user/ 2022-12-16 13:44:33 +01:00
run.php MaintenanceRunner: find script by name 2022-12-21 07:11:04 +00:00
runBatchedQuery.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
runJobs.php Move ForkController to MediaWiki/Maintenance/ namespace 2022-10-15 20:21:29 +02:00
runScript.php
shell.php
showJobs.php jobqueue: Clean up file headers and @ingroup 2022-09-23 16:10:58 +01:00
showSiteStats.php
sql.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
Sqlite.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
SqliteMaintenance.php Fix MediaWiki.WhiteSpace.EmptyLinesBetweenUse.Found 2022-10-08 19:05:09 +01:00
TableCleanup.php SQLPlatform: Introduce buildComparison() 2022-09-10 04:22:19 +02:00
tables-generated.sql schema: Add new fields for externallinks so we can reduce duplication 2022-10-18 16:18:54 +00:00
tables.json Replace comments about deprecated Linker::commentBlock/formatComment 2022-12-11 01:03:15 +00:00
tables.sql
tidyUpT39714.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
undelete.php Reorg: Move StubObject classes in includes to its own directory 2022-10-25 16:04:48 -04:00
update-keys.sql
update.php Fix casing of class and function name usages 2022-12-04 19:09:30 +00:00
updateArticleCount.php
updateCollation.php SQLPlatform: Introduce buildComparison() 2022-09-10 04:22:19 +02:00
updateCredits.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
updateExtensionJsonSchema.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
updateRestrictions.php updateRestrictions.php: Fix literal \n in output 2022-06-29 16:06:45 -04:00
updateSearchIndex.php
updateSpecialPages.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02:00
uppercaseTitlesForUnicodeTransition.php Use buildComparison() instead of raw SQL in more maintenance scripts 2022-11-15 09:54:05 +01:00
userOptions.php Make userOptions.php capable of deleting user options 2022-11-04 22:52:44 +00:00
validateRegistrationFile.php
version.php Add explicit casts between scalar types 2022-03-08 16:59:01 +00:00
view.php
wikiBirthday.php maintenance: Display the birth date & age of a wiki install 2022-06-07 11:50:24 +01:00
wrapOldPasswords.php maintenance: Use $this->waitForReplication() 2022-10-24 21:11:53 +02: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