wiki.techinc.nl/maintenance
Alexandre Emsenhuber 066984cbe3 * Standardised file description headers
* added @file where needed
* added file description headers where needed
2010-09-05 13:15:48 +00:00
..
archives Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00
cssjanus (Bug 24436) Move cssjanus to maintenance folder 2010-07-18 21:31:52 +00:00
dtrace
gearman Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
ibm_db2 Completed removal of $wgDBport_db2 in favour of regular $wgDBport begun by platonides in r69918. 2010-09-01 21:06:42 +00:00
language Follow-up r72340: Special page and its user rights have gone 2010-09-04 06:08:21 +00:00
mssql DatabaseMssql class and related changes 2010-08-06 23:44:00 +00:00
ora * Fixed parserTests compatibility for Oracle 2010-06-08 18:14:28 +00:00
postgres Followup to r72349, PG table def + updater for module_deps 2010-09-04 04:14:51 +00:00
sqlite Fixed SQLite updater broken by r69542 2010-08-15 14:49:07 +00:00
storage Remove some unused variables 2010-08-13 20:58:16 +00:00
tests Follow-up r72340. Remove functions defined twice. 2010-09-04 15:09:08 +00:00
.htaccess
7zip.inc * Standardised file description headers 2010-09-05 13:15:48 +00:00
addwiki.php * Revert r66878, completely misses the point of factoring out doEdit() in the first place, which was to separate the UI layer from the backend layer, to support callers with alternate UIs or no UIs. 2010-08-09 08:33:42 +00:00
attachLatest.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
backup.inc * Standardised file description headers 2010-09-05 13:15:48 +00:00
backupPrefetch.inc * Standardised file description headers 2010-09-05 13:15:48 +00:00
benchmarkPurge.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
changePassword.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
checkAutoLoader.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
checkBadRedirects.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
checkImages.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
checkSyntax.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
checkUsernames.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupCaps.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupDupes.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
cleanupImages.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupSpam.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupTable.inc * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupTitles.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
cleanupWatchlist.php * Standardised file description headers 2010-09-05 13:15:48 +00:00
clear_interwiki_cache.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
clear_stats.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
commandLine.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
convertLinks.php self::DB_ADMIN to Maintenance::DB_ADMIN for constant 2010-08-24 22:06:08 +00:00
convertUserOptions.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
createAndPromote.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteArchivedFiles.inc Followup r69841 add missing t from output 2010-07-24 20:17:19 +00:00
deleteArchivedFiles.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteArchivedRevisions.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteArchivedRevisions.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteBatch.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteDefaultMessages.php Add a post-update maintenance script list, moved deleteDefaultMessages into it. 2010-08-16 14:23:28 +00:00
deleteImageMemcached.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteOldRevisions.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteOrphanedRevisions.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
deleteRevision.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
deleteSelfExternals.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
doMaintenance.php * add wfRunMaintenance() script to simplify maint script writing 2010-09-04 00:01:30 +00:00
Doxyfile Don't show the namespace list (and members) since we don't use it 2010-09-01 19:24:08 +00:00
dumpBackup.php Partial revert r71363. I lied, these are used. They're just not documented for crap 2010-08-29 13:06:22 +00:00
dumpHTML.php
dumpInterwiki.php Follow up r72394. Remove global line. 2010-09-04 21:35:23 +00:00
dumpLinks.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
dumpSisterSites.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
dumpTextPass.php Refactor to avoid defining globals inside switches. 2010-08-12 14:25:07 +00:00
dumpUploads.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
edit.php edit.php: got rid of $wgTitle 2010-05-27 18:04:08 +00:00
eval.php Followup r72108, put the history file in $IP/maintenance rather than the cwd. Also add it to svnignore. 2010-09-03 14:24:40 +00:00
ExtraParserTests.txt Bug 23715: replaced 8-megabyte txt file that crashed many text editors with one str_repeat() call 2010-05-30 17:41:53 +00:00
fetchText.php clean up space/tab stuff 2010-07-19 18:36:52 +00:00
findhooks.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
FiveUpgrade.inc Fixup some method calls with missing parameters 2010-09-02 21:54:53 +00:00
fixSlaveDesync.php Use a class member instead of a global for keeping slaveIndexes. 2010-08-12 20:27:54 +00:00
fixTimestamps.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
fixUserRegistration.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
fuzz-tester.php Use the canonical names for classes. 2010-07-27 18:33:04 +00:00
generateSitemap.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
getLagTimes.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
getSlaveServer.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
getText.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
helloWorld.php * added @file 2010-09-04 06:17:07 +00:00
httpSessionDownload.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
importDump.php Get rid of PHP4-style constructors 2010-08-30 16:52:51 +00:00
importImages.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
importImages.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
importTextFile.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
importUseModWiki.php Remove some unused variables 2010-08-13 20:58:16 +00:00
initEditCount.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
initStats.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
install-utils.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
install.php overrideConfig was moved to CoreInstaller in r69738, but new-index.php / maintenance/install.php wasn't updated 2010-07-24 17:12:51 +00:00
interwiki.list Fixes for r66013: fixed syntax, switched interwiki.list to use more customary comments starting with # 2010-06-23 16:06:34 +00:00
interwiki.sql (bug 23616) Spaces in interwiki.sql entries break postgres, link doesn't get inserted 2010-05-23 15:14:13 +00:00
lag.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
Maintenance.php * add wfRunMaintenance() script to simplify maint script writing 2010-09-04 00:01:30 +00:00
Makefile
mcc.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
mctest.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
mergeMessageFileList.php Remove unused variable 2010-07-24 21:11:29 +00:00
migrateUserGroup.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
minify.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
moveBatch.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
mwdocgen.php Use MediaWiki wfTempDir() and tempnam() instead of global $tmpPath and rand() 2010-07-27 12:30:19 +00:00
namespaceDupes.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
nextJobDB.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
nukeNS.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
nukePage.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
orphans.php Fixup some method calls with missing parameters 2010-09-02 21:54:53 +00:00
ourusers.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
parserTests.inc Remove usage of deprecated makeKnownLinkObj(). 2010-09-04 22:25:59 +00:00
parserTests.php Do not use directly the $options global 2010-08-01 18:03:29 +00:00
parserTests.txt Remove usage of deprecated makeKnownLinkObj(). 2010-09-04 22:25:59 +00:00
parserTestsParserHook.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
parserTestsParserTime.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
parserTestsStaticParserHook.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
patchSql.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
populateCategory.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
populateLogSearch.php Remove some unused variables 2010-08-13 20:58:16 +00:00
populateLogUsertext.php More unused variables, whitespace 2010-07-25 21:44:29 +00:00
populateParentId.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
populateRevisionLength.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
populateSha1.php More unused variables, whitespace 2010-07-25 21:44:29 +00:00
preprocessorFuzzTest.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
protect.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
purgeList.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
purgeOldText.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
purgeOldText.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
README
reassignEdits.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
rebuildall.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
rebuildFileCache.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
rebuildImages.php Get rid of PHP4-style constructors 2010-08-30 16:52:51 +00:00
rebuildInterwiki.php Converting dumpInterwiki.php into new Maintenance. In two steps to get better diffs. 2010-09-04 21:32:28 +00:00
rebuildLocalisationCache.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
rebuildmessages.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
rebuildrecentchanges.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
rebuildtextindex.php Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
refreshCategoryCounts.php (bug 18488) Added maintenance script refreshCategoryCounts.php. Based on Happy-Mellon's patch from that bug, heavily refactored by me 2010-05-10 15:47:45 +00:00
refreshImageCount.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
refreshLinks.php Make fixLinksFromArticle public and static 2010-08-20 16:49:17 +00:00
removeUnusedAccounts.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
renameDbPrefix.php Add a few globals. 2010-07-25 18:39:41 +00:00
renamewiki.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
renderDump.php Commit some renderDump improvements 2010-07-27 20:44:42 +00:00
rollbackEdits.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
runBatchedQuery.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
runJobs.php Fixed a bunch of silly instances of [^!=]==\s*(true|false) 2010-06-09 11:44:05 +00:00
showJobs.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
showStats.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
sql.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
sqlite.inc maintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility 2010-08-12 16:06:47 +00:00
sqlite.php maintenance/sqlite.php: added the ability to check .sql files for SQLite compatibility 2010-08-12 16:06:47 +00:00
stats.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
tables.sql Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00
testRunner.ora.sql Started working on parserTests Oracle compatibility, still getting FK violations 2009-11-06 17:12:18 +00:00
testRunner.postgres.sql
testRunner.sql
undelete.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
update.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
updateArticleCount.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
updateCollation.php Further categorylinks schema changes 2010-09-03 20:52:08 +00:00
updateDoubleWidthSearch.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
updateRestrictions.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
updaters.inc Further categorylinks schema changes 2010-09-03 20:52:08 +00:00
updateSearchIndex.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
updateSpecialPages.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
upgrade1_5.php Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
userDupes.inc Big commit: kill almost every freeResult() call as useless 2010-08-08 12:27:48 +00:00
userOptions.inc Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
userOptions.php
users.sql Follow up to r56323: fix the broken grant syntax (which I should have tested before committing). 2009-09-20 07:15:19 +00:00
waitForSlave.php Standardised file description headers: 2010-09-01 19:36:18 +00:00
wikipedia-interwiki.sql Nuke the last vestiges of tlh. 2009-09-13 13:57:35 +00:00
wiktionary-interwiki.sql

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

	stats.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