wiki.techinc.nl/maintenance
Ammarpad 53f24f2ac8 Postgres: Fix revision table indexes drifts with MySQL
Added new index: 'rev_page_timestamp' (the corresponding index
in MySQL is currently 'page_timestamp' but it will soon be
renamed to have the rev_ suffix as part of T270033).

Rename rev_timestamp_idx and revision_unique to match names
that are in use for MySQL

Bug: T230428
Bug: T164898
Change-Id: I3a79a892673b073cea57ee4e397b2963c7cef2f1
2021-03-21 18:29:12 +01:00
..
abstractSchemaChanges Remove reference to non-existing method in comments 2021-03-03 10:26:16 +01:00
archives Migrate page to abstract schema 2021-03-21 12:07:12 +01:00
benchmarks Introduce Tidy service 2021-03-15 17:22:36 -04:00
dev
includes Merge "Add Maintenance::waitForReplication()" 2021-03-18 10:24:26 +00: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 Postgres: Fix revision table indexes drifts with MySQL 2021-03-21 18:29:12 +01:00
sqlite Migrate page to abstract schema 2021-03-21 12:07:12 +01:00
storage
term
.htaccess
addChangeTag.php
addRFCandPMIDInterwiki.php
addSite.php
attachLatest.php
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
checkImages.php
checkLess.php
checkUsernames.php
cleanupAncientTables.php
cleanupBlocks.php
cleanupCaps.php
cleanupEmptyCategories.php
cleanupImages.php
cleanupInvalidDbKeys.php
cleanupPreferences.php
cleanupRemovedModules.php
cleanupRevActorPage.php
cleanupSpam.php
cleanupTitles.php
cleanupUploadStash.php
cleanupUsersWithNoId.php
cleanupWatchlist.php
clearInterwikiCache.php
CodeCleanerGlobalsPass.php
CommandLineInc.php
compareParserCache.php
compareParsers.php
convertExtensionToRegistration.php
copyFileBackend.php
copyJobQueue.php
createAndPromote.php
createBotPassword.php
deduplicateArchiveRevId.php
deleteArchivedFiles.php
deleteArchivedRevisions.php
deleteAutoPatrolLogs.php
deleteBatch.php
deleteDefaultMessages.php
deleteEqualMessages.php
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 docs: Improve Doxygen aliases and map more tool annotations to @noop 2021-03-17 23:33:01 +00:00
dumpBackup.php
dumpCategoriesAsRdf.php
dumpIterator.php Merge "maintenance: Remove preprocessDump.php" 2021-03-04 22:09:53 +00:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php
edit.php
emptyUserGroup.php
eraseArchivedFile.php
eval.php Allow hooking into shell and eval maint scripts for convenience 2021-03-12 14:18:09 +00:00
exportSites.php
fetchText.php
fileOpPerfTest.php
findBadBlobs.php Add Maintenance::waitForReplication() 2021-03-18 01:02:41 +01:00
findDeprecated.php
findMissingActors.php ActorNormalization should require a DB connection. 2021-03-10 21:43:49 +01:00
findMissingFiles.php
findOrphanedFiles.php
fixDefaultJsonContentPages.php
fixDoubleRedirects.php
fixExtLinksProtocolRelative.php
fixTimestamps.php
fixUserRegistration.php
formatInstallDoc.php
generateJsonI18n.php
generateLocalAutoload.php
generateSchemaChangeSql.php Use .= instead of = . .... 2021-02-19 23:05:36 +00:00
generateSchemaSql.php Abstract schema: Handle MySQL Float/Double precision types 2021-03-21 05:00:55 +00:00
generateSitemap.php
getConfiguration.php
getLagTimes.php
getReplicaServer.php
getText.php getText.php: add --revision option 2021-02-13 13:37:13 +01:00
importDump.php
importImages.php
importSites.php
importSiteScripts.php
importTextFiles.php
initEditCount.php
initSiteStats.php
initUserPreference.php
install.php
interwiki.list
interwiki.sql
invalidateUserSessions.php
jsparse.php
lag.php
Maintenance.php
Makefile
makeTestEdits.php
manageForeignResources.php
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
migrateComments.php
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
nukeNS.php
nukePage.php
orphans.php
pageExists.php pageExist.php: Output trailing newlines 2021-03-20 21:20:31 +00:00
parse.php
patchSql.php
populateArchiveRevId.php
populateBacklinkNamespace.php
populateCategory.php
populateChangeTagDef.php
populateContentTables.php
populateExternallinksIndex60.php
populateFilearchiveSha1.php
populateImageSha1.php
populateInterwiki.php
populateIpChanges.php
populateParentId.php
populatePPSortKey.php
populateRecentChangesSource.php
populateRevisionLength.php
populateRevisionSha1.php
preprocessorFuzzTest.php
protect.php
pruneFileCache.php
purgeChangedFiles.php
purgeChangedPages.php
purgeExpiredBlocks.php
purgeExpiredUserrights.php
purgeExpiredWatchlistItems.php
purgeList.php
purgeModuleDeps.php
purgeOldText.php
purgePage.php
purgeParserCache.php
README
reassignEdits.php ActorNormalization should require a DB connection. 2021-03-10 21:43:49 +01:00
rebuildall.php
rebuildFileCache.php
rebuildImages.php
rebuildLocalisationCache.php maintenance: rebuildLocalisationCache should be DB_NONE if possible 2021-03-02 11:13:43 -08:00
rebuildmessages.php
rebuildrecentchanges.php
rebuildtextindex.php
recountCategories.php
refreshExternallinksIndex.php
refreshFileHeaders.php
refreshImageMetadata.php
refreshLinks.php
removeInvalidEmails.php
removeUnusedAccounts.php
renameDbPrefix.php
renameRestrictions.php
renderDump.php
resetAuthenticationThrottle.php
resetPageRandom.php
resetUserEmail.php ResetUserEmail: Call parent constructor first 2021-02-27 00:10:09 +00:00
resetUserTokens.php
rollbackEdits.php
runBatchedQuery.php
runJobs.php
runScript.php
shell.php Allow hooking into shell and eval maint scripts for convenience 2021-03-12 14:18:09 +00:00
showJobs.php
showSiteStats.php
sql.php
Sqlite.php
SqliteMaintenance.php maintenance: Disable storage backend for DB_NONE tasks 2021-03-02 13:26:40 -08:00
syncFileBackend.php
TableCleanup.php
tables-generated.sql Migrate page to abstract schema 2021-03-21 12:07:12 +01:00
tables.json Migrate page to abstract schema 2021-03-21 12:07:12 +01:00
tables.sql Migrate page to abstract schema 2021-03-21 12:07:12 +01:00
tidyUpT39714.php
undelete.php
update-keys.sql
update.php
updateArticleCount.php
updateCollation.php
updateCredits.php
updateDoubleWidthSearch.php
updateExtensionJsonSchema.php
updateRestrictions.php
updateSearchIndex.php
updateSpecialPages.php
uppercaseTitlesForUnicodeTransition.php
userOptions.php Avoid using User ::getDefaultOption, ::getDefaultOptions 2021-03-16 17:24:17 +02:00
validateRegistrationFile.php
version.php
view.php
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