wiki.techinc.nl/maintenance
Siebrand Mazeland cb8a938105 Pass phpcs-strict on maintenance/ (4/8)
Change-Id: Ib9ee255740681f0d32d76b75ef33b369bc87bcc1
2014-04-23 10:26:09 +02:00
..
archives Password Expiration 2014-02-20 09:41:51 -08:00
benchmarks Pass phpcs-strict on maintenance/benchmarks/ 2014-04-22 21:58:25 +02:00
cssjanus
dev phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dictionary Removed 'Remember my login' preference 2014-04-16 12:49:44 +05:30
hiphop phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
jsduck Support JSDuck v5.x 2014-04-12 00:46:45 +00:00
language Remove superfluous # at end of line from languages.inc 2014-04-18 19:03:13 +02:00
locking Removed expiremental LSLockManager class 2014-01-17 15:16:01 -08:00
mssql Password Expiration 2014-02-20 09:41:51 -08:00
oracle Pass phpcs-strict on maintenance/oracle/ 2014-04-22 22:23:01 +02:00
postgres PostgreSQL: Allow rc_cur_time field to be null. 2014-04-22 16:57:49 +00:00
resources update-oojs-ui.sh: Replace target dir instead of adding file copies 2014-04-19 02:14:36 +00:00
sqlite/archives move page_restrictions.pr_id to top in tables.sql 2013-11-18 19:47:53 +01:00
storage Pass phpcs-strict on maintenance/storage/ 2014-04-22 22:23:18 +02:00
term Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
.htaccess
7zip.inc Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
attachLatest.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
backup.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
backupPrefetch.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
backupTextPass.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
cdb.php Fixed spacing 2013-12-01 20:58:51 +01:00
changePassword.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkBadRedirects.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkImages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkLess.php Add a LESS test suite 2014-03-31 23:02:53 -04:00
checkSyntax.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
checkUsernames.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
cleanupAncientTables.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupCaps.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
cleanupImages.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
cleanupPreferences.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupRemovedModules.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupSpam.php Use wfShellWikiCmd() for the shell command in cleanupSpam.php 2014-02-08 22:53:50 +01:00
cleanupTable.inc Fix PHP CodeSniffer warnings and errors 2013-10-09 18:45:16 +02:00
cleanupTitles.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
cleanupUploadStash.php Made cleanupUploadStash use batching for the last two loops 2013-11-13 18:06:10 +00:00
cleanupWatchlist.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
clearCacheStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
clearInterwikiCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
commandLine.inc phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
compareParsers.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
convertLinks.php Remove $dbw->close() call from convertLinks.php 2013-12-07 15:23:10 -05:00
convertUserOptions.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
copyFileBackend.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
copyJobQueue.php Revert "Revert "Removed useless JobQueue return values"" 2014-04-16 11:22:31 -07:00
createAndPromote.php Add bot to createAndPromote.php groups 2013-05-30 18:03:04 -05:00
deleteArchivedFiles.inc
deleteArchivedFiles.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteArchivedRevisions.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
deleteArchivedRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteBatch.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteDefaultMessages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteEqualMessages.php deleteEqualMessages: Exclude messages that are empty by default 2013-10-09 21:08:14 +02:00
deleteImageMemcached.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteOldRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteOrphanedRevisions.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
deleteRevision.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteSelfExternals.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
doMaintenance.php Remove $wgTitle from all maintenance scripts 2014-03-12 18:28:47 -07:00
Doxyfile doc: speed up dot generation 2013-06-20 19:23:46 +00:00
dumpBackup.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
dumpIterator.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
dumpLinks.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
dumpSisterSites.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
dumpTextPass.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
dumpUploads.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
edit.php Add "nocreate" and "createonly" options to edit.php 2013-12-10 14:17:50 -08:00
eraseArchivedFile.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
eval.php Make it a bit safer to paste input to eval.php 2014-01-09 15:04:51 -08:00
fetchText.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
fileOpPerfTest.php Added a --profiler option to all maintenance scripts. 2013-05-23 14:20:51 -07:00
findHooks.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
fixDoubleRedirects.php Merge "Provide RequestContext from fixDoubleRedirects" 2014-03-31 16:21:21 +00:00
fixExtLinksProtocolRelative.php Add sequence support for externallinks table 2014-01-03 20:36:20 +01:00
fixSlaveDesync.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
fixTimestamps.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixUserRegistration.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
formatInstallDoc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
generateJsonI18n.php Merge "JSON i18n shim: Only register LocalisationCacheRecache handler once" 2014-04-22 10:11:33 +00:00
generateSitemap.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
getConfiguration.php Revert "Added some constants to speed up Setup.php" 2014-02-06 09:04:46 +00:00
getLagTimes.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
getSlaveServer.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
getText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
importDump.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
importImages.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
importImages.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
importSiteScripts.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
importTextFile.php Set a title for the context during import on the cli 2014-03-09 22:17:01 -04:00
initEditCount.php Remove version check for mysql 4.1 from Maintenance scripts 2013-12-31 14:53:07 +05:30
initSiteStats.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
install.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
interwiki.list Removing Wikitravel from the default interwiki list 2014-03-21 17:37:19 +00:00
interwiki.sql Removing Wikitravel from the default interwiki list 2014-03-21 17:37:19 +00:00
jsparse.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
lag.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
Maintenance.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
Makefile
mcc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
mctest.php Let maintenance class start with a upper case letter 2013-11-23 22:53:29 +01:00
mergeMessageFileList.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
migrateUserGroup.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
minify.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
moveBatch.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
mwdoc-filter.php
mwdocgen.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
mwjsduck-gen mwjsduck-gen: Don't fail when running from different directory 2014-04-18 11:09:14 +02:00
namespaceDupes.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
nextJobDB.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
nukeNS.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
nukePage.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
orphans.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
parse.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
patchSql.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
populateCategory.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
populateFilearchiveSha1.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateImageSha1.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
populateLogSearch.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
populateLogUsertext.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateParentId.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
populateRecentChangesSource.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
populateRevisionLength.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
populateRevisionSha1.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
preprocessDump.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
preprocessorFuzzTest.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
protect.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
pruneFileCache.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
purgeChangedFiles.php Fixed spacing 2013-11-19 19:03:54 +01:00
purgeChangedPages.php Add configurable delay between purgeChangedPages batches 2013-10-15 15:38:52 +00:00
purgeList.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
purgeOldText.inc
purgeOldText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
purgeParserCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
README
reassignEdits.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
rebuildall.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
rebuildFileCache.php Remove $wgTitle from all maintenance scripts 2014-03-12 18:28:47 -07:00
rebuildImages.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
rebuildLocalisationCache.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
rebuildmessages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildrecentchanges.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
rebuildtextindex.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
refreshFileHeaders.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
refreshImageMetadata.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
refreshLinks.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
removeUnusedAccounts.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
renameDbPrefix.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
renderDump.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
resetUserTokens.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
rollbackEdits.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
runBatchedQuery.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
runJobs.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
runScript.php Add convenience maintenance script wrapper 2013-11-07 21:10:07 +01:00
showCacheStats.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
showJobs.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
showSiteStats.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
sql.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
sqlite.inc Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
sqlite.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
syncFileBackend.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
tables.sql Password Expiration 2014-02-20 09:41:51 -08:00
tidyUpBug37714.php Tidy up log deletion rows which didn't get subpages 2013-09-21 02:42:45 +00:00
undelete.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
update.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateArticleCount.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateCollation.php Move reference to $row where it is in-scope and doesn't produce 2013-11-25 22:18:55 -05:00
updateDoubleWidthSearch.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00: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 Moved $wgQueryPages stuff out of the global scope and into a function 2014-03-18 08:36:32 -07:00
userDupes.inc Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
userOptions.inc Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
userOptions.php Let maintenance class start with a upper case letter 2013-11-23 22:53:29 +01:00
waitForSlave.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02: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

	importTextFile.php
	Import the contents of a text file into a wiki page

	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

	showCacheStats.php
	Show all statistics stored in the cache

	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