wiki.techinc.nl/maintenance
Umherirrender 57beb76a80 abstract schema: Remove unsigned: false from integer types
unsigned false is the default and not needed to be specified in the
definition.

Change-Id: Ib2df05d2f46e06b101d27d8684c6210053da0170
2021-12-28 11:16:03 +00:00
..
abstractSchemaChanges schema: Make filearchive.fa_id unsigned 2021-12-07 15:25:13 +01:00
archives schema: Make filearchive.fa_id unsigned 2021-12-07 15:25:13 +01:00
benchmarks Replace Content::getParserOutput call to ContentRenderer::getParserOutput 2021-10-20 12:11:24 +03:00
dev
includes Merge "Maintenance.php: Code cleanup to console functions" 2021-12-08 02:27:39 +00:00
jsduck Upgrade Vue to the migration build of Vue 3 2021-12-07 19:31:43 +00:00
language Use LanguageNameUtils constants instead of strings 2021-12-05 22:13:34 +01:00
locking
mediawiki.Title Use 0 instead of "" in phpCharToUpper.json 2021-09-23 05:56:42 +00:00
postgres Drop pr_user from page_restrictions 2021-12-06 14:15:39 +01:00
sqlite Drop pr_user from page_restrictions 2021-12-06 14:15:39 +01: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
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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
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
CommandLineInc.php
compareParserCache.php
compareParsers.php
convertExtensionToRegistration.php
copyFileBackend.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
deleteArchivedFiles.php Stop using LocalFile::lock() 2021-11-15 13:56:53 +11: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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
Doxyfile docs: Fix Doxygen rendering of @newable in class comments 2021-12-15 02:35:17 +00:00
dumpBackup.php
dumpCategoriesAsRdf.php
dumpIterator.php WikiImporter: inject services 2021-05-24 23:10:07 +02:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php maintenance: Add --parse-title option to edit.php to parse the title input 2021-12-03 00:04:43 +00: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
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 jobqueue: Fix max no. of double redirect jobs in job queue 2021-11-26 19:59:41 +01:00
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 Merge "GetConfiguration: Allow partial output with JSON encoding" 2021-11-26 07:29:37 +00:00
getLagTimes.php
getReplicaServer.php getReplicaServer: Handle clusters 2021-11-28 15:13:16 +01:00
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 Remove or replace usages of "sane" 2021-11-22 13:35:17 +00: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 maintenance: Add ability to start from rev_id to migrateRevisionActorTemp 2021-11-18 21:51:38 +01:00
migrateUserGroup.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
moveBatch.php MoveBatch.php: Minor code cleanup 2021-11-24 19:47:21 +00: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 Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
nukeNS.php nukeNS: don't run purgeRedundantText() after every change 2021-11-19 17:56:01 +00: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 Allow populateContentTables to continue when there are bad blobs 2021-10-17 18:02:37 -04: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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00: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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
purgeChangedFiles.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
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 reassignEdits: Collapse nested if statements 2021-11-19 22:48:49 +00:00
rebuildall.php
rebuildFileCache.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
rebuildImages.php Manual and automatic image metadata reserialization 2021-06-26 22:50:17 +00:00
rebuildLocalisationCache.php Use LanguageNameUtils constants instead of strings 2021-12-05 22:13:34 +01: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 media: Drop XML metadata support from DjvuHandler 2021-11-21 15:47:56 +01:00
refreshLinks.php Introduce Redirect(Lookup&Store) services to handle redirects 2021-12-01 19:14:22 +01: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 Remove or replace usages of "sane" 2021-11-22 13:35:17 +00: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 schema: Make filearchive.fa_id unsigned 2021-12-07 15:25:13 +01:00
tables.json abstract schema: Remove unsigned: false from integer types 2021-12-28 11:16:03 +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 Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
updateCredits.php
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 Remove or replace usages of "sane" 2021-11-22 15:48:03 +00: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