wiki.techinc.nl/maintenance
umherirrender 54c1e18eec Remove various double empty newlines
The double empty newline is not needed between functions, variable or at
end of file

Change-Id: Ib866a95084c4601ac150a2b402cfa184ebc18afa
2015-12-27 18:55:12 +00:00
..
archives resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
benchmarks Rename SquidUpdate => CdnCacheUpdate 2015-12-09 16:31:17 -08:00
dev Merge "Revert "Add executable rights for executable (bash) files"" 2015-08-07 07:38:00 +00:00
dictionary Remove $wgAjaxWatch configuration variable 2015-10-20 22:51:09 +01:00
hiphop
jsduck Update OOjs to v1.1.10 2015-11-11 10:04:19 -08:00
language zhtable makefile: Remove unused variables, fix almost all pep8 errors 2015-10-16 00:49:06 -07:00
locking Removed expiremental LSLockManager class 2014-01-17 15:16:01 -08:00
mssql resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
oracle resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
postgres resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
resources resources: Add OOjs UI's Apex theme's files 2015-05-23 16:45:54 +00:00
sqlite/archives Allow edit summaries to be up to 767 bytes long 2015-03-11 13:36:38 +00:00
storage Remove various double empty newlines 2015-12-27 18:55:12 +00:00
term Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
.htaccess
7zip.inc Update formatting in maintenance/ (1/4) 2014-04-23 20:08:06 +02:00
attachLatest.php Pass phpcs-strict on maintenance/ (8/8) 2014-04-23 14:00:10 +02:00
backup.inc Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
backupPrefetch.inc Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
backupTextPass.inc phpcs: Fix some "Single space expected before elseif" 2015-11-01 21:03:18 +01:00
cdb.php Allow maintenance/cdb.php to look up keys with spaces in them. 2015-11-22 12:29:02 -05:00
changePassword.php
checkBadRedirects.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
checkComposerLockUpToDate.php Make lines short to pass phpcs in files under maintenance/ 2015-09-27 15:48:56 +00:00
checkImages.php Fixed stat calls in checkImages 2015-04-17 17:20:04 +00:00
checkLess.php Handle phpunit being autoloaded from checkLess.php 2014-12-08 10:30:01 -08:00
checkSyntax.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
checkUsernames.php checkUsernames: send output to stdout, don't include wikiid 2015-04-20 23:26:49 -07:00
cleanupAncientTables.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
cleanupBlocks.php Maintenance script to clean up mismatched user names in ipblocks 2014-10-27 10:40:02 -04:00
cleanupCaps.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
cleanupImages.php Remove wrong usage documentation in comments 2015-12-13 16:08:25 +01:00
cleanupPreferences.php Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes 2015-09-24 17:17:25 +02:00
cleanupRemovedModules.php resourceloader: Migrate from msg_resource table to object cache 2015-12-08 14:02:38 +00:00
cleanupSpam.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
cleanupTable.inc Remove various double empty newlines 2015-12-27 18:55:12 +00:00
cleanupTitles.php Remove wrong usage documentation in comments 2015-12-13 16:08:25 +01:00
cleanupUploadStash.php Use wfWaitForSlaves in upload stash cleanup script 2015-04-08 16:24:29 +00:00
cleanupWatchlist.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
clearInterwikiCache.php
commandLine.inc Remove various double empty newlines 2015-12-27 18:55:12 +00:00
compareParserCache.php Fixed spacing 2014-07-19 23:12:10 +02:00
compareParsers.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
convertExtensionToRegistration.php registration: When converting, place 'namemsg' under 'name' 2015-12-14 16:55:38 +00:00
convertLinks.php Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
convertUserOptions.php Make convertUserOptions.php more self-contained 2014-05-31 23:10:47 -04:00
copyFileBackend.php ellapsed => elapsed 2015-06-23 03:32:33 +00:00
copyJobQueue.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
createAndPromote.php Disallow User::setPassword() on users not in database 2015-10-30 11:33:58 -04:00
createCommonPasswordCdb.php Add support for blacklisting common passwords 2015-11-25 17:02:33 -05:00
deleteArchivedFiles.php Combine deleteArchived{Files,Revisions}.inc into the .php scripts 2015-05-17 00:01:42 +00:00
deleteArchivedRevisions.php Combine deleteArchived{Files,Revisions}.inc into the .php scripts 2015-05-17 00:01:42 +00:00
deleteBatch.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
deleteDefaultMessages.php deleteEqualMessages.php: Avoid "Transaction already in progress" warning 2015-08-26 01:16:22 -04:00
deleteEqualMessages.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
deleteOldRevisions.php
deleteOrphanedRevisions.php Pass phpcs-strict on maintenance/ (6/8) 2014-04-23 09:27:41 +00:00
deleteRevision.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteSelfExternals.php
doMaintenance.php Pass __METHOD__ to load balancer commit/rollback methods 2015-12-22 18:30:20 -08:00
Doxyfile Doxygen: Disable verbose output 2015-11-23 20:33:01 +00:00
dumpBackup.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
dumpIterator.php Import.php: Use Config instead of globals 2014-10-22 10:35:29 -07:00
dumpLinks.php Don't use isset() to check for null 2014-05-10 14:23:50 +02:00
dumpTextPass.php Allow to set stub read buffer size for TextPassDumper 2015-02-20 00:56:39 +01:00
dumpUploads.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
edit.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
eraseArchivedFile.php Removed LocalFile::purgeHistory method 2015-04-27 17:36:02 -07:00
eval.php Revert "Make eval.php try to handle newlines in code" 2015-02-23 00:59:24 +00:00
exportSites.php maintenance/exportSites: Fix minor whitespace issue 2015-06-20 23:49:49 +03:00
fetchText.php Make lines short to pass phpcs in files under maintenance/ 2015-09-27 15:48:56 +00:00
fileOpPerfTest.php
findDeprecated.php Remove various double empty newlines 2015-12-27 18:55:12 +00:00
findHooks.php Allow findHooks.php to compare parameter references of hooks 2015-11-18 16:19:34 +00:00
findMissingFiles.php Avoid the page join when not really needed 2014-10-02 17:23:51 +00:00
findOrphanedFiles.php Make FindOrphanedFiles handle bad file titles 2015-11-04 20:19:17 -08:00
fixDefaultJsonContentPages.php Add script to fix content model of JSON pages 2015-11-24 10:08:44 -08:00
fixDoubleRedirects.php Remove RequestContext from edit.php and fixDoubleRedirects.php 2014-07-23 20:30:08 +00:00
fixExtLinksProtocolRelative.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
fixTimestamps.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
fixUserRegistration.php Fix ORDER BY in fixUserRegistration.php 2015-03-29 14:13:47 -04:00
formatInstallDoc.php
generateJsonI18n.php generateJsonI18n.php: Remove features that should no longer be needed 2015-04-30 15:59:13 -04:00
generateLocalAutoload.php Remove various double empty newlines 2015-12-27 18:55:12 +00:00
generateSitemap.php Replace a few more logical operators 2014-10-24 11:41:00 -04:00
getConfiguration.php Allow to export null values 2015-08-31 15:45:06 -07:00
getLagTimes.php
getSlaveServer.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
getText.php Pass phpcs-strict on maintenance/ (5/8) 2014-04-23 11:27:25 +02:00
importDump.php Add --rootpage parameter to importDump.php 2015-12-27 02:53:34 +00:00
importImages.inc Remove various double empty newlines 2015-12-27 18:55:12 +00:00
importImages.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
importSites.php Remove various double empty newlines 2015-12-27 18:55:12 +00:00
importSiteScripts.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
initEditCount.php Remove version check for mysql 4.1 from Maintenance scripts 2013-12-31 14:53:07 +05:30
initSiteStats.php Remove hitcounters and associated code 2014-10-20 13:01:55 -07:00
install.php phpcs: Use __DIR__ constant instead of calling 2015-11-15 21:14:42 +01:00
interwiki.list Remove the SourceForge interwiki 2015-09-04 14:51:55 -07:00
interwiki.sql Remove the SourceForge interwiki 2015-09-04 14:51:55 -07:00
jsparse.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
lag.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
Maintenance.php phpcs: Use __DIR__ constant instead of calling 2015-11-15 21:14:42 +01:00
Makefile
makeTestEdits.php Check User::getId() in makeTestEdits.php 2015-12-11 15:30:57 -08:00
mcc.php objectcache: Reduce MediaWiki-specificness from Memcached classes 2015-11-10 03:32:58 +00:00
mctest.php Remove some PHP4 microtime() compat wrappers 2014-07-16 23:39:48 -04:00
mergeMessageFileList.php require_once instead of depending on the return value of include_once 2015-04-22 17:37:19 -05:00
migrateFileRepoLayout.php Cleanups to MigrateFileRepoLayout 2015-10-04 21:45:25 -07:00
migrateUserGroup.php
minify.php resourceloader: Deprecate two pointless minification config vars 2015-09-30 22:04:33 +00:00
moveBatch.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
mwdoc-filter.php Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments 2015-11-23 23:02:13 +00:00
mwdocgen.php Doxygen: Disable verbose output 2015-11-23 20:33:01 +00:00
mwjsduck-gen Rename JSDuck config to standard 'jsduck' 2015-03-09 18:10:00 +00:00
namespaceDupes.php namespaceDupes: Ignore duplicate key errors in link table updates 2015-11-18 16:24:17 -08:00
nukeNS.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
nukePage.php
orphans.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
pageExists.php Remove various double empty newlines 2015-12-27 18:55:12 +00:00
parse.php Suppress stdin warning with --quiet 2015-07-23 21:42:55 -07:00
patchSql.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
populateBacklinkNamespace.php Added --lastUpdatedId option to backlink namespace population script 2014-08-01 18:47:30 +00:00
populateCategory.php Fix Maintenance typo 2015-10-18 22:29:03 +01:00
populateContentModel.php Re-enable MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis 2015-09-26 17:38:35 +01:00
populateFilearchiveSha1.php phpcs: Use __DIR__ constant instead of calling 2015-11-15 21:14:42 +01:00
populateImageSha1.php Avoid query error with odd parameter combination 2014-04-24 15:48:28 -07:00
populateLogSearch.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateLogUsertext.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateParentId.php Fix some stuttering in comments and documentation 2014-12-17 19:44:10 +00:00
populateRecentChangesSource.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateRevisionLength.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateRevisionSha1.php Updated some try-catch statements: MWException -> Exception 2015-01-09 17:20:22 -08:00
preprocessDump.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
preprocessorFuzzTest.php Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
protect.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
pruneFileCache.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
purgeChangedFiles.php Removed LocalFile::purgeHistory method 2015-04-27 17:36:02 -07:00
purgeChangedPages.php Rename SquidUpdate => CdnCacheUpdate 2015-12-09 16:31:17 -08:00
purgeList.php Rename SquidUpdate => CdnCacheUpdate 2015-12-09 16:31:17 -08:00
purgeOldText.php
purgeParserCache.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
README Remove obsolete showCacheStats.php and showCacheStats.php 2015-12-07 19:49:29 +00:00
reassignEdits.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rebuildall.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
rebuildFileCache.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
rebuildImages.php Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
rebuildLocalisationCache.php rebuildLocalisationCache: don't limit memory usage 2015-07-13 02:26:34 -07:00
rebuildmessages.php
rebuildrecentchanges.php Remove use of strencode() outside Database classes 2014-06-02 13:45:26 -04:00
rebuildSitesCache.php Split SiteLookup interface from SiteStore 2015-03-18 21:31:48 +01:00
rebuildtextindex.php Run clearSearchIndex when mysql in rebuildTextIndex 2015-01-27 10:22:07 -08:00
refreshFileHeaders.php
refreshImageMetadata.php Unify the spelling of MIME in documentation 2014-08-07 23:38:45 +02:00
refreshLinks.php Remove begin/commit transaction calls in refreshLinks.php 2015-10-27 02:07:46 +01:00
removeInvalidEmails.php removeInvalidEmails.php: Fix batching continuation for wikis with >500 users 2014-12-04 10:40:25 -08:00
removeUnusedAccounts.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
renameDbPrefix.php
renderDump.php Import.php: Use Config instead of globals 2014-10-22 10:35:29 -07:00
resetUserTokens.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rollbackEdits.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
runBatchedQuery.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
runJobs.php Enable DBO_TRX for runJobs.php, just like HTTP job runner 2015-04-21 17:42:31 -07:00
runScript.php
showJobs.php Added --status and --limit filters to showJobs.php 2015-08-28 05:09:23 +00:00
showSiteStats.php Remove hitcounters and associated code 2014-10-20 13:01:55 -07:00
sql.php maintenance: Add --query option in sql.php 2015-07-18 20:53:25 +00:00
sqlite.inc Clean up $wgSQLiteDataDir handling and removed standalone sqlite class 2015-03-09 18:35:24 +00:00
sqlite.php Use mediawiki/at-ease library for suppressing warnings 2015-06-11 18:49:29 +00:00
syncFileBackend.php Fixed small IDE error in –syncFileBackend.php 2015-09-19 17:12:15 +00:00
tables.sql resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
tidyUpBug37714.php
undelete.php User: Mostly remove password handling 2015-10-13 16:10:41 -06:00
update-keys.sql Ignore duplicate key errors in update-keys.sql 2014-09-08 13:29:31 -07:00
update.php Remove a few more PHP4-isms from update.php 2015-06-28 02:03:48 +01:00
updateArticleCount.php updateArticleCount.php: use "vslow" DB by default, allow master 2014-12-09 19:20:10 +00:00
updateCollation.php Remove --max-slave-lag options and remnants from maintenance scripts 2015-03-26 19:33:35 -04:00
updateDoubleWidthSearch.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
updateRestrictions.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateSearchIndex.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateSpecialPages.php updateSpecialPages: Get rid of dead SpecialPage::getFile() code 2015-10-27 09:37:05 -07:00
userDupes.inc Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
userOptions.inc Change some comment style in userOptions.inc 2015-10-14 09:09:03 +00:00
userOptions.php Let maintenance class start with a upper case letter 2013-11-23 22:53:29 +01:00
validateRegistrationFile.php Fix whitespace issues around parentheses 2015-06-16 22:14:02 +03:00
waitForSlave.php Remove --max-slave-lag options and remnants from maintenance scripts 2015-03-26 19:33:35 -04:00
wrapOldPasswords.php Added password hashing API 2014-07-27 15:51:18 -04: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