wiki.techinc.nl/maintenance
Petr Pchelko 900c6663b0 Enhance GroupPermissionsLookup and use it.
Added new methods:
- ::getGroupsWithAnyPermissions
- ::getGroupsWithAllPermissions
- ::groupHasAnyPermission
- ::groupHasAllPermission

Replaced relevant calls to PermissionManager with
calls to GroupPermissionsLookup.

Bug: T254537
Change-Id: I0b9c3352c5bebc94e1649239fe0527144e7c2eb2
2021-01-11 11:05:54 -06:00
..
abstractSchemaChanges Rename four logging indexes to have log_ prefix 2020-12-21 07:39:50 +00:00
archives Fix completely typo 2021-01-05 15:06:37 +00:00
benchmarks Remove all methods of MWTidy except for MWTidy::tidy() 2020-08-17 18:15:37 +00:00
dev build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
includes build: Upgrade mediawiki-phan-config from 0.10.5 to 0.10.6 2020-12-17 10:14:53 -08:00
jsduck Add baseline MW REST API client for frontend 2020-12-09 23:05:15 +00:00
language Improve class property documentation 2020-10-30 10:38:58 +01:00
locking
mediawiki.Title maintenance: Remove executable bit from scripts without shebang 2020-07-31 18:29:19 -07:00
postgres Migrate text table to abstract schema 2021-01-09 16:07:54 +01:00
sqlite Migrate text table to abstract schema 2021-01-09 16:07:54 +01:00
storage build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
term
.htaccess
addChangeTag.php
addRFCandPMIDInterwiki.php
addSite.php
attachLatest.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
blockUsers.php Make blockUsers.php capable of both blocking and unblocking 2020-10-06 17:40:25 +00:00
categoryChangesAsRdf.php Merge "don't pass null page id to page related queries for category change rdf dumps" 2020-09-09 19:28:44 +00:00
changePassword.php
checkBadRedirects.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
checkComposerLockUpToDate.php
checkDependencies.php
checkImages.php
checkLess.php
checkUsernames.php Use UserNameUtils in maintenance scripts 2020-10-25 21:52:56 +00:00
cleanupAncientTables.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
cleanupBlocks.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
cleanupCaps.php maintenance: Move cleanupTable from .inc to .php 2020-09-25 17:36:39 +01:00
cleanupEmptyCategories.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
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 Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
cleanupRemovedModules.php
cleanupRevActorPage.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
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 Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
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 Filter out invalid globals in shell.php global hack 2020-12-07 19:08:16 +00:00
CommandLineInc.php Remove phpcs suppression of ValidGlobalName.wgPrefix 2020-09-29 21:58:14 +00:00
compareParserCache.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
compareParsers.php Remove usages of global function wfDiff() 2020-07-22 08:00:08 +01:00
convertExtensionToRegistration.php
convertLinks.php Add some int casts for queries in maintenance scripts 2020-11-27 18:43:40 +01:00
convertUserOptions.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
copyFileBackend.php
copyJobQueue.php
createAndPromote.php Use MediaWikiServices::getAuthManager instead of AuthManager::singleton 2020-06-22 00:57:08 +00:00
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 Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
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 Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
deleteTag.php
doMaintenance.php Remove phpcs suppression of ValidGlobalName.wgPrefix 2020-09-29 21:58:14 +00:00
Doxyfile Doxygen: Stop documenting .inc files, we don't use them now 2020-09-29 16:28:27 +00:00
dumpBackup.php dumpBackup: Don't open stderr in DumpBackup::__construct 2020-10-12 03:57:02 +01: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 Fix bad use of |= PHP bit operation where = … || bool is intended 2020-08-12 02:33:01 +00:00
dumpLinks.php
dumpTextPass.php
dumpUploads.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
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 Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
eval.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
exportSites.php
fetchText.php Use multi-catch block in fetchText.php 2020-07-31 23:46:46 +02:00
fileOpPerfTest.php maintenance: Remove unneeded truthy check on dir handling 2020-06-25 10:45:43 +00:00
findBadBlobs.php Merge "Add FindMissingActors script." 2020-09-23 06:56:34 +00:00
findDeprecated.php
findMissingActors.php Add FindMissingActors script. 2020-09-22 21:10:16 +02:00
findMissingFiles.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
findOrphanedFiles.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
fixDefaultJsonContentPages.php Fix infinite loop in the FixDefaultJsonContentPages job 2020-10-30 14:38:37 +01:00
fixDoubleRedirects.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
fixExtLinksProtocolRelative.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
fixTimestamps.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
fixUserRegistration.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
formatInstallDoc.php ParserOptions: Deprecate fallback to $wgUser 2020-12-16 09:03:29 +00:00
generateJsonI18n.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
generateLocalAutoload.php
generateSchemaChangeSql.php Handle invalid json error in abstract schema change generator 2020-12-14 18:00:56 +00:00
generateSchemaSql.php Merge "generateSchemaSql.php: Trim $IP/extensions/ from $relativeJsonPath" 2020-12-05 02:28:12 +00:00
generateSitemap.php Fix docs in GenerateSitemap 2020-11-13 00:16:01 +01:00
getConfiguration.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
getLagTimes.php
getReplicaServer.php
getText.php Replace uses and hard deprecate Revision::newFromTitle 2020-04-18 04:47:10 +00:00
importDump.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
importImages.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
importSites.php
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 Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
initSiteStats.php
initUserPreference.php maintenance: Make use of BatchRowIterator::setCaller 2020-09-05 12:55:11 +00:00
install.php
interwiki.list
interwiki.sql
invalidateUserSessions.php
jsparse.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
lag.php phan: Enable redundant_condition_detection 2020-07-01 20:13:07 +00:00
Maintenance.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +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
mcc.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
mctest.php
mergeMessageFileList.php Remove phpcs suppression of ValidGlobalName.wgPrefix 2020-09-29 21:58:14 +00:00
migrateActors.php
migrateArchiveText.php Replace core uses and hard deprecate Revision::(de)compressRevisionText 2020-06-04 01:47:12 +00:00
migrateComments.php build: Upgrade mediawiki-phan-config from 0.10.5 to 0.10.6 2020-12-17 10:14:53 -08:00
migrateFileRepoLayout.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
migrateImageCommentTemp.php
migrateUserGroup.php
minify.php
moveBatch.php maintenance scripts: Reduce direct references to $wgUser 2020-06-05 01:40:34 +00:00
mwdoc-filter.php
mwdocgen.php
mwjsduck-gen
mysql.php
namespaceDupes.php Make use of array deconstruction directly in foreach, if possible 2020-11-12 18:38:06 +00:00
nukeNS.php Use db abstraction layer in nukePage and nukeNS maintenance script 2020-05-08 23:31:41 +02:00
nukePage.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
orphans.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
pageExists.php
parse.php Hard deprecate calling ParserOptions::newCanonical with no parameters 2020-06-15 23:11:45 +00:00
patchSql.php maintenance: Remove sql.php temporarily 2020-04-07 00:04:37 +00:00
populateArchiveRevId.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
populateBacklinkNamespace.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
populateCategory.php Fix PSR12.Properties.ConstantVisibility.NotFound in maintenance/ 2020-05-09 23:54:58 +00:00
populateChangeTagDef.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populateContentTables.php Add some int casts for queries in maintenance scripts 2020-11-27 18:43:40 +01:00
populateExternallinksIndex60.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
populateFilearchiveSha1.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
populateImageSha1.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
populateInterwiki.php Pass function name to HttpRequestFactory::create 2020-06-07 12:20:06 +00:00
populateIpChanges.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populateLogSearch.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populateLogUsertext.php
populateParentId.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populatePPSortKey.php Make populatePPSortKey less noisy 2020-04-11 01:28:04 +00:00
populateRecentChangesSource.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populateRevisionLength.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
populateRevisionSha1.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
preprocessDump.php Fix parameter documentation for dump methods for handling revisions 2020-05-05 02:04:32 +00:00
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 Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
purgeExpiredBlocks.php purgeExpiredBlocks.php: Update call to deprecated DatabaseBlock::purgeExpired() 2020-12-24 17:11:57 +00:00
purgeExpiredUserrights.php Hard-deprecate UserGroupMembership methods replaced by manager 2020-06-12 14:36:26 -07:00
purgeExpiredWatchlistItems.php Purge expired watchlist items 2020-03-26 07:54:20 +08:00
purgeList.php Replace deprecated Title::getCdnUrls 2020-11-03 11:58:05 +01:00
purgeModuleDeps.php
purgeOldText.php
purgePage.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
purgeParserCache.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
README
reassignEdits.php reassignEdits: Update script to use User::newFromName for anon users 2020-08-03 10:49:18 -04:00
rebuildall.php
rebuildFileCache.php Give rebuildFileCache.php an all pages option 2020-07-11 12:54:58 +01:00
rebuildImages.php Make ImageBuilder::checkMissingImage public 2020-11-03 15:48:57 +00:00
rebuildLocalisationCache.php Add flag to rebuildLocalisationCache.php to skip MessageBlobStore clear 2020-11-24 15:42:38 -08:00
rebuildmessages.php
rebuildrecentchanges.php Enhance GroupPermissionsLookup and use it. 2021-01-11 11:05:54 -06:00
rebuildtextindex.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
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 Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
refreshLinks.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
removeInvalidEmails.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
removeUnusedAccounts.php
renameDbPrefix.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
renameRestrictions.php maintenance: Remove executable bit from scripts without shebang 2020-07-31 18:29:19 -07:00
renderDump.php Fix parameter documentation for dump methods for handling revisions 2020-05-05 02:04:32 +00:00
resetAuthenticationThrottle.php Use MediaWikiServices::getAuthManager instead of AuthManager::singleton 2020-06-22 00:57:08 +00:00
resetPageRandom.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
resetUserEmail.php Remove call to deprecated setPassword() User method 2020-06-12 19:16:11 +00:00
resetUserTokens.php Replace wfWaitForSlaves() with LBFactory::waitForReplication() 2020-05-02 02:00:01 +00:00
rollbackEdits.php Replace deprecated WikiPage::factory/newFromID in maintenance scripts 2020-11-12 21:48:21 +00:00
runBatchedQuery.php Fix runBatchedQuery.php for no result from select 2020-07-28 15:50:50 +00:00
runJobs.php
runScript.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
shell.php
showJobs.php
showSiteStats.php
sql.php maintenance: Remove --slave option from sql.php 2020-06-11 01:26:20 +00:00
Sqlite.php Improve code around internal queries in sqlite database class 2020-12-03 19:30:11 +00:00
SqliteMaintenance.php maintenance: Move sqlite.php to SqliteMaintenance.php to match class name 2020-09-25 17:36:36 +01:00
syncFileBackend.php
TableCleanup.php Reduce some references to $wgUser 2020-10-13 15:07:27 +00:00
tables-generated.sql Migrate text table to abstract schema 2021-01-09 16:07:54 +01:00
tables.json Migrate text table to abstract schema 2021-01-09 16:07:54 +01:00
tables.sql Migrate text table to abstract schema 2021-01-09 16:07:54 +01:00
tidyUpT39714.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
undelete.php maintenance scripts: Reduce direct references to $wgUser 2020-06-05 01:40:34 +00:00
update-keys.sql
update.php Revert "Add a new type of database to the installer from extension" 2020-07-22 16:05:31 -07:00
updateArticleCount.php
updateCollation.php Fix PSR12.Properties.ConstantVisibility.NotFound in maintenance/ 2020-05-09 23:54:58 +00:00
updateCredits.php Remove some checks for extension_loaded( 'intl' ) 2020-11-29 00:06:32 +00:00
updateDoubleWidthSearch.php Deprecate Revision::loadFromPageId 2020-03-25 12:10:48 -07:00
updateExtensionJsonSchema.php Move known attributes when updating to manifest_version 2 2020-05-18 16:29:19 +00:00
updateRestrictions.php Pass function name to database functions (maintenance scripts) 2020-06-07 17:24:10 +00:00
updateSearchIndex.php Fix capitalisation of updateSearchIndex.php parameter desc 2020-04-01 19:29:10 +01:00
updateSpecialPages.php
uppercaseTitlesForUnicodeTransition.php Swap out uses of User->isLoggedIn() with ->isRegistered() 2020-12-22 03:13:37 +00:00
UserDupes.php maintenance: Move userDupes from .inc to .php 2020-09-23 11:59:41 +01:00
userOptions.php Fix various MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment 2020-05-21 01:06:05 +00:00
validateRegistrationFile.php
version.php maintenance: Print version of MediaWiki on the command prompt 2020-08-23 23:20:44 +00:00
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