wiki.techinc.nl/maintenance
Amir Sarabadani 335c06f7b6 Drop MysqlUpdater::doWatchlistNull() and its related sql file
It was introduced in 1.6 which we don't support direct upgrade from
anymore. Also it has been removed from update.php list and it's not
mentioned anymore.

Bug: T272199
Change-Id: I8d9565fe035faf96033dc207515b8ec21bca9fe6
2021-03-10 14:33:42 +01:00
..
abstractSchemaChanges Remove reference to non-existing method in comments 2021-03-03 10:26:16 +01:00
archives Drop MysqlUpdater::doWatchlistNull() and its related sql file 2021-03-10 14:33:42 +01:00
benchmarks resourceloader: Add wikimedia/minify package and remove local copies 2021-02-24 21:03:02 +00:00
dev build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
includes Maintenance.php: Remove HHVM remnant 2021-03-03 00:37:35 +01:00
jsduck build: Upgrade eslint-config-wikimedia from 0.17.0 to 0.18.1 2021-02-18 08:39:09 -08:00
language Merge "Chinese Conversion Table Update 2020-2" 2021-02-21 17:24:51 +00:00
locking
mediawiki.Title
postgres Drop 1.27 upgrade patch files 2021-03-09 07:15:37 +01:00
sqlite Merge "Remove SqliteUpdater::sqliteInitialIndexes and its sql patch" 2021-03-09 16:08:20 +00:00
storage Use static closures where safe to use 2021-02-11 00:13:52 +00:00
term
.htaccess
addChangeTag.php
addRFCandPMIDInterwiki.php
addSite.php Add notice about local-server cache to addSite.php 2021-02-09 11:37:41 +01:00
attachLatest.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
blockUsers.php Merge "BlockUsers maintenance script: Allow setting of block flags" 2021-02-25 14:23:51 +00:00
categoryChangesAsRdf.php Rename new_name_timestamp on recentchanges to rc_new_name_timestamp 2021-03-01 19:00:52 +00:00
changePassword.php
checkBadRedirects.php
checkComposerLockUpToDate.php
checkDependencies.php checkDependencies.php: Don't throw exception to command line. 2021-02-12 21:17:12 +01:00
checkImages.php
checkLess.php
checkUsernames.php Use UserNameUtils in maintenance scripts 2020-10-25 21:52:56 +00:00
cleanupAncientTables.php
cleanupBlocks.php
cleanupCaps.php maintenance: Move cleanupTable from .inc to .php 2020-09-25 17:36:39 +01:00
cleanupEmptyCategories.php
cleanupImages.php maintenance: Move cleanupTable from .inc to .php 2020-09-25 17:36:39 +01:00
cleanupInvalidDbKeys.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
cleanupPreferences.php
cleanupRemovedModules.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
cleanupRevActorPage.php
cleanupSpam.php cleanupSpam: pass a user when editing a page 2020-12-14 21:19:08 +00:00
cleanupTitles.php Improve docs about @param/@return object $row to stdClass 2020-11-13 00:08:21 +01:00
cleanupUploadStash.php
cleanupUsersWithNoId.php Improve docs about @param/@return object $row to stdClass 2020-11-13 00:08:21 +01:00
cleanupWatchlist.php maintenance: Move cleanupTable from .inc to .php 2020-09-25 17:36:39 +01:00
clearInterwikiCache.php
CodeCleanerGlobalsPass.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
CommandLineInc.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
compareParserCache.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
compareParsers.php
convertExtensionToRegistration.php
convertLinks.php Add some int casts for queries in maintenance scripts 2020-11-27 18:43:40 +01:00
convertUserOptions.php
copyFileBackend.php
copyJobQueue.php
createAndPromote.php
createBotPassword.php Validate max length of bp_restrictions and bp_grants 2020-12-05 02:10:01 +00:00
deduplicateArchiveRevId.php Improve docs about @param/@return object $row to stdClass 2020-11-13 00:08:21 +01:00
deleteArchivedFiles.php
deleteArchivedRevisions.php
deleteAutoPatrolLogs.php
deleteBatch.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
deleteDefaultMessages.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
deleteEqualMessages.php Merge "Inject services into SpecialAllMessages" 2020-11-20 19:07:30 +00:00
deleteLocalPasswords.php
deleteOldRevisions.php
deleteOrphanedRevisions.php
deleteSelfExternals.php
deleteTag.php
doMaintenance.php maintenance: Disable storage backend for DB_NONE tasks 2021-03-02 13:26:40 -08:00
Doxyfile Doxygen: Stop documenting .inc files, we don't use them now 2020-09-29 16:28:27 +00:00
dumpBackup.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
dumpCategoriesAsRdf.php Merge "don't include null page ids in query list for category dumps" 2020-09-09 19:25:28 +00:00
dumpIterator.php Merge "maintenance: Remove preprocessDump.php" 2021-03-04 22:09:53 +00:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
emptyUserGroup.php emptyUserGroup.php: handle more than 5000 users 2020-09-16 12:56:02 -07:00
eraseArchivedFile.php
eval.php Use Shellbox for Shell::command() etc. 2021-02-05 21:51:58 +11:00
exportSites.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
fetchText.php
fileOpPerfTest.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
findBadBlobs.php maintenance: Fix errors in parameter handling and output of findBadBlobs 2021-01-22 01:34:10 +00:00
findDeprecated.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
findMissingActors.php Hard-deprecate IDatabase parameter for UserIdentity:getActorId() 2021-02-17 12:51:02 -05:00
findMissingFiles.php
findOrphanedFiles.php
fixDefaultJsonContentPages.php Fix infinite loop in the FixDefaultJsonContentPages job 2020-10-30 14:38:37 +01:00
fixDoubleRedirects.php
fixExtLinksProtocolRelative.php
fixTimestamps.php
fixUserRegistration.php
formatInstallDoc.php ParserOptions: Deprecate fallback to $wgUser 2020-12-16 09:03:29 +00:00
generateJsonI18n.php
generateLocalAutoload.php
generateSchemaChangeSql.php Use .= instead of = . .... 2021-02-19 23:05:36 +00:00
generateSchemaSql.php Use .= instead of = . .... 2021-02-19 23:05:36 +00:00
generateSitemap.php Fix docs in GenerateSitemap 2020-11-13 00:16:01 +01:00
getConfiguration.php
getLagTimes.php
getReplicaServer.php
getText.php getText.php: add --revision option 2021-02-13 13:37:13 +01:00
importDump.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
importImages.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
importSites.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
importSiteScripts.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
importTextFiles.php importTextFiles.php: Replace deprecated WikiRevision:setText() 2020-11-10 01:35:41 +01:00
initEditCount.php
initSiteStats.php
initUserPreference.php maintenance: Make use of BatchRowIterator::setCaller 2020-09-05 12:55:11 +00:00
install.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
interwiki.list Modify meatballwiki url in default interwiki table 2021-01-26 23:45:29 +09:00
interwiki.sql Modify meatballwiki url in default interwiki table 2021-01-26 23:45:29 +09:00
invalidateUserSessions.php
jsparse.php
lag.php
Maintenance.php Make sure RUN_MAINTENANCE_IF_MAIN is defined in tests. 2021-01-19 19:09:31 +00:00
Makefile
makeTestEdits.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
manageForeignResources.php
manageJobs.php Define a batch size in maintenance/manageJobs.php 2021-03-09 16:50:51 +01:00
mcc.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
mctest.php
mergeMessageFileList.php maintenance: Avoid missing l10n cache error in mergeMessageFileList 2021-03-02 21:41:23 -08:00
migrateActors.php
migrateArchiveText.php
migrateComments.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
migrateFileRepoLayout.php
migrateImageCommentTemp.php
migrateUserGroup.php
moveBatch.php Remove usage line for moveBatch.php 2021-03-03 16:00:41 +00:00
mwdoc-filter.php
mwdocgen.php
mwjsduck-gen
mysql.php MysqlMaintenance: Make use of Maintenance::fatalError 2021-02-28 05:24:09 +00:00
namespaceDupes.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
nukeNS.php
nukePage.php
orphans.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
pageExists.php
parse.php
patchSql.php
populateArchiveRevId.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
populateBacklinkNamespace.php
populateCategory.php
populateChangeTagDef.php
populateContentTables.php Handle BlobAccessException exception 2021-01-20 20:47:44 +00:00
populateExternallinksIndex60.php
populateFilearchiveSha1.php
populateImageSha1.php
populateInterwiki.php
populateIpChanges.php
populateLogSearch.php
populateLogUsertext.php
populateParentId.php
populatePPSortKey.php
populateRecentChangesSource.php
populateRevisionLength.php
populateRevisionSha1.php
preprocessorFuzzTest.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
protect.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
pruneFileCache.php Fix description for pruneFileCache.php 2020-09-18 22:53:01 +00:00
purgeChangedFiles.php
purgeChangedPages.php
purgeExpiredBlocks.php purgeExpiredBlocks.php: Update call to deprecated DatabaseBlock::purgeExpired() 2020-12-24 17:11:57 +00:00
purgeExpiredUserrights.php
purgeExpiredWatchlistItems.php
purgeList.php Replace deprecated Title::getCdnUrls 2020-11-03 11:58:05 +01:00
purgeModuleDeps.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
purgeOldText.php
purgePage.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
purgeParserCache.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
README
reassignEdits.php Hard-deprecate IDatabase parameter for UserIdentity:getActorId() 2021-02-17 12:51:02 -05:00
rebuildall.php
rebuildFileCache.php
rebuildImages.php Make ImageBuilder::checkMissingImage public 2020-11-03 15:48:57 +00:00
rebuildLocalisationCache.php maintenance: rebuildLocalisationCache should be DB_NONE if possible 2021-03-02 11:13:43 -08:00
rebuildmessages.php
rebuildrecentchanges.php Revert "Enhance GroupPermissionsLookup and use it." 2021-01-12 04:48:49 +00:00
rebuildtextindex.php
recountCategories.php Add some int casts for queries in maintenance scripts 2020-11-27 18:43:40 +01:00
refreshExternallinksIndex.php Add some int casts for queries in maintenance scripts 2020-11-27 18:43:40 +01:00
refreshFileHeaders.php
refreshImageMetadata.php
refreshLinks.php build: Update mediawiki/mediawiki-codesniffer to 35.0.0 2021-01-31 13:34:38 +00:00
removeInvalidEmails.php
removeUnusedAccounts.php
renameDbPrefix.php
renameRestrictions.php
renderDump.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
resetAuthenticationThrottle.php
resetPageRandom.php
resetUserEmail.php ResetUserEmail: Call parent constructor first 2021-02-27 00:10:09 +00:00
resetUserTokens.php
rollbackEdits.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
runBatchedQuery.php
runJobs.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
runScript.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
shell.php
showJobs.php
showSiteStats.php
sql.php
Sqlite.php Improve code around internal queries in sqlite database class 2020-12-03 19:30:11 +00:00
SqliteMaintenance.php maintenance: Disable storage backend for DB_NONE tasks 2021-03-02 13:26:40 -08:00
syncFileBackend.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
TableCleanup.php Reduce some references to $wgUser 2020-10-13 15:07:27 +00:00
tables-generated.sql Rename new_name_timestamp on recentchanges to rc_new_name_timestamp 2021-03-01 19:00:52 +00:00
tables.json Remove reference to non-existing method in comments 2021-03-03 10:26:16 +01:00
tables.sql Migrate recentchanges table to abstract schema 2021-02-26 13:56:56 +01:00
tidyUpT39714.php
undelete.php
update-keys.sql
update.php Merge "Fail update if bot_passwords doesn't exist" 2021-01-30 18:59:43 +00:00
updateArticleCount.php
updateCollation.php
updateCredits.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
updateDoubleWidthSearch.php
updateExtensionJsonSchema.php
updateRestrictions.php
updateSearchIndex.php
updateSpecialPages.php
uppercaseTitlesForUnicodeTransition.php maintenance: Mark some closures as static 2021-02-07 02:18:30 +00:00
userOptions.php Safer autoloading with respect to file-scope code 2021-01-11 11:59:36 +11:00
validateRegistrationFile.php
version.php
view.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
wrapOldPasswords.php

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