wiki.techinc.nl/maintenance
Mark A. Hershberger 54badce2d8 Follow-up r61856
* Rename wordSegmentation() to segmentByWord().
* Consolidate search index locking and iteration to Maintenance.php
* Add maintenance/updateDoubleWidthSearch.php to take care of new
  format for normalized double-width roman characters.
* Add error checking to updateSearchIndex.php for creating $posFile.
* Add note to UPGRADE about running updateDoubleWidthSearch.php.
2010-03-10 21:54:23 +00:00
..
archives Fixes for r62870. It still needs a patch for Oracle though 2010-02-23 12:24:19 +00:00
dtrace
gearman Merge and clean up memory_limit hacks from wmf-deployment r53208. 2009-09-14 22:10:10 +00:00
ibm_db2 Rename some extauth functions and fields 2009-12-08 19:32:17 +00:00
language followup to r63300: add links to /common.css & /common.js to preferences 2010-03-06 20:42:35 +00:00
mssql
ora tables.sql for oracle missing prefix 2010-03-02 16:26:38 +00:00
postgres Some reason had each each update in there twice 2009-12-21 16:09:47 +00:00
sqlite Updated link to docs 2010-01-17 13:35:26 +00:00
storage Don't allow trackBlobs.php to continue if there is a potential for corruption as in bug 20757 or bug 22624. 2010-03-05 23:59:42 +00:00
tests * Fix a global problem. 2010-03-07 04:26:23 +00:00
.htaccess
7zip.inc (bug 19289) importDump.php can now handle bzip2 and 7zip. 2009-08-07 00:53:21 +00:00
addwiki.php Fix child class visibility 2010-03-10 12:59:44 +00:00
attachLatest.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
backup.inc Fixed some doxygen warnings 2010-03-03 21:28:03 +00:00
backupPrefetch.inc
benchmarkPurge.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
changePassword.php newline on that output so your terminal don't look funny :) 2009-09-04 17:40:50 +00:00
checkAutoLoader.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
checkBadRedirects.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
checkImages.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
checkSyntax.php Fix child class visibility 2010-03-10 12:59:44 +00:00
checkUsernames.php doMaintenance.php -> DO_MAINTENANCE 2009-09-04 12:55:36 +00:00
cleanupCaps.php Fixes for TitleCleanup subclasses: 2009-09-24 04:19:25 +00:00
cleanupDupes.inc
cleanupImages.php Fix for bug 9413 and the related Malayalam issue reported on wikitech-l. 2010-01-04 08:28:50 +00:00
cleanupSpam.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
cleanupTable.inc Doxygen fixes: 2009-12-05 17:07:40 +00:00
cleanupTitles.php Fix for bug 9413 and the related Malayalam issue reported on wikitech-l. 2010-01-04 08:28:50 +00:00
cleanupWatchlist.php Fix for bug 9413 and the related Malayalam issue reported on wikitech-l. 2010-01-04 08:28:50 +00:00
clear_interwiki_cache.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
clear_stats.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
commandLine.inc Fix child class visibility 2010-03-10 12:59:44 +00:00
convertLinks.inc config/index.php: 2009-08-15 21:29:58 +00:00
convertLinks.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
convertUserOptions.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
createAndPromote.php Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
deleteArchivedFiles.inc * Make tests work better together. Tests are now skipped or marked incomplete. 2010-02-25 04:37:21 +00:00
deleteArchivedFiles.php * Make tests work better together. Tests are now skipped or marked incomplete. 2010-02-25 04:37:21 +00:00
deleteArchivedRevisions.inc Fix search-and-replace error 2010-02-25 09:15:19 +00:00
deleteArchivedRevisions.php * Make tests work better together. Tests are now skipped or marked incomplete. 2010-02-25 04:37:21 +00:00
deleteBatch.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
deleteDefaultMessages.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
deleteImageMemcached.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
deleteOldRevisions.php get rid of strict notice. 2010-02-21 22:47:40 +00:00
deleteOrphanedRevisions.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
deleteRevision.php Redo r53641, reverted in r55457, now using indexed queries: 2009-08-23 09:39:13 +00:00
deleteSelfExternals.php Change deleteSelfExternals to use Maintenance.php 2009-12-04 14:57:21 +00:00
doMaintenance.php Fix regression from r51677, still need to load AdminSettings if it exists for back-compat. Needs backporting to REL1_16. 2010-03-10 12:44:57 +00:00
Doxyfile * Add --no-extensions option to mwdocgen.php to exclude the extensions directory 2009-10-04 09:50:33 +00:00
dumpBackup.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
dumpHTML.php
dumpInterwiki.inc Doc fixes, add new Wikimedia group for doxygen so we can set this stuff apart. 2009-08-05 00:34:18 +00:00
dumpInterwiki.php Doc fixes, add new Wikimedia group for doxygen so we can set this stuff apart. 2009-08-05 00:34:18 +00:00
dumpLinks.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
dumpSisterSites.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
dumpTextPass.php Fix for bug 9413 and the related Malayalam issue reported on wikitech-l. 2010-01-04 08:28:50 +00:00
dumpUploads.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
edit.php Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
eval.php Revert eval.php changes from r54653, r54312, r54225 (maintenance-work branch merge), these changes totally broke eval.php due to the change in scope, from global to function. 2009-08-12 03:44:06 +00:00
fetchText.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
findhooks.php Fix child class visibility 2010-03-10 12:59:44 +00:00
FiveUpgrade.inc Last update to call $dbw->sourceFile() directly. Throw wfDeprecated() in dbsource() since nothing in core or extensions calls this. 2009-08-03 04:32:50 +00:00
fixSlaveDesync.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
fixTimestamps.php Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
fixUserRegistration.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
fuzz-tester.php Nuke the last vestiges of tlh. 2009-09-13 13:57:35 +00:00
generateSitemap.php compress option needs a value :) 2009-10-16 12:30:56 +00:00
getLagTimes.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
getSlaveServer.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
getText.php Follow up r59331. 2010-01-17 16:00:36 +00:00
httpSessionDownload.php follow up r60999 - remove reference to $wgUseNormalUser 2010-01-14 00:57:59 +00:00
importDump.php Follow-up to http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54561: use the class autoloader. 2009-08-19 05:41:42 +00:00
importImages.inc file_get_contents -> Http::get per ^demon 2010-02-07 18:39:26 +00:00
importImages.php Applied and tweaked smart-import patch from Mij, merging with 1.16. 2010-02-07 16:10:14 +00:00
importTextFile.php Follow up r62436 comments. 2010-02-13 23:58:30 +00:00
importUseModWiki.php Replaced all instances of <<<END (which breaks vim syntax highlighting), with a type-specific end token. For HTML and SQL, this causes vim to highlight the embedded text with the HTML or SQL file type plugins respectively, which is very neat. 2009-12-07 08:51:52 +00:00
initEditCount.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
initStats.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
install-utils.inc follow up 61907 remove 5.0 bug check 2010-02-03 16:29:09 +00:00
installExtension.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
interwiki.sql (bug 22233) Update mediazilla default interwiki to point to correct domain 2010-01-25 13:04:46 +00:00
lag.php Convert lag.php maintenance script to new format (using the Maintenance class) 2009-11-13 22:43:16 +00:00
Maintenance.php Follow-up r61856 2010-03-10 21:54:23 +00:00
Makefile
mcc.php Avoid "PHP Warning: Division by zero in maintenance/mcc.php on line 92" if there's only a single server 2010-01-23 19:00:56 +00:00
mctest.php Fix regression: server parameter needs to be optional; most of the time we *do not* want to use one since it's going to test all defined servers 2009-09-30 21:24:47 +00:00
mergeMessageFileList.php Don't include the old ExtensionMessages.php when you're building a new one. Otherwise renames break. 2009-11-27 00:18:59 +00:00
migrateUserGroup.php * svn:eol-style native 2009-09-07 13:18:54 +00:00
minify.php * Removed JS2 stuff from jquery.js. If there's anything we really need from it, it can be re-added to wikibits.js, but that can wait for the extension analysis which I'm going to do next. 2010-01-27 05:17:26 +00:00
moveBatch.php Fixed error output in moveBatch.php 2010-03-08 17:09:55 +00:00
mwdocgen.php Follow-up r57356: forgot to document $exclude param 2009-10-16 08:21:02 +00:00
namespaceDupes.php Fix syntax errors from r57989 2009-10-22 06:18:41 +00:00
nextJobDB.php removed trailing whitespaces 2009-11-23 18:20:26 +00:00
nukeNS.php * Rewrote commandLine.inc to be a simple wrapper around Maintenance.php 2009-09-04 08:02:00 +00:00
nukePage.php Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
orphans.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
ourusers.php Doc fixes, add new Wikimedia group for doxygen so we can set this stuff apart. 2009-08-05 00:34:18 +00:00
parserTests.inc Merge fixes to ?preload= from /branches/conrad/ (cf. bug 5210, r62864, r62035) 2010-03-03 02:41:14 +00:00
parserTests.php Abstracted some parts of database interaction for parser tests, needs verification on Postgres. SQLite still doesn't work, though fails much later 2009-11-06 10:17:44 +00:00
parserTests.txt Fixed CSS validation issue (no handling for line continuation). Reported by Suffusion of Yellow. Release notes will go in other branches. 2010-03-08 22:22:01 +00:00
parserTestsParserHook.php
parserTestsParserTime.php
parserTestsStaticParserHook.php
patchSql.php Fix child class visibility 2010-03-10 12:59:44 +00:00
populateCategory.php call populateRevisionLength.php from updaters.inc; make updaters.inc use populate*.php instead of the old populate*.inc scripts for other population tasks; remove the now obsolete populate*.inc files; misc. fixes 2010-03-03 21:15:05 +00:00
populateLogSearch.php bug 18472 Suppression log filtered by "offender", as Oversight log can be 2009-09-14 17:09:13 +00:00
populateLogUsertext.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
populateParentId.php call populateRevisionLength.php from updaters.inc; make updaters.inc use populate*.php instead of the old populate*.inc scripts for other population tasks; remove the now obsolete populate*.inc files; misc. fixes 2010-03-03 21:15:05 +00:00
populateRevisionLength.php followup to r63221: skip update and emit warning if revision text cannot be found 2010-03-04 00:27:44 +00:00
populateSha1.php Add fixme note to replace 'mysql' command-line callout with proper usage of a second unbuffered DB connection 2009-08-04 23:24:58 +00:00
preprocessorFuzzTest.php Fix for bug 9413 and the related Malayalam issue reported on wikitech-l. 2010-01-04 08:28:50 +00:00
protect.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
purgeList.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
purgeOldText.inc (bug 19160) Use DISTINCT instead of DISTINCTROW for compatibility with postgresql 2009-06-15 03:05:28 +00:00
purgeOldText.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
README * (bug 14201) Set $wgDBadminuser/$wgDBadminpassword during setup 2009-07-23 00:31:37 +00:00
reassignEdits.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
rebuildall.php Now that rebuildtextindex.php is not MySQL-only, rebuildall.php should also take it into account 2009-11-07 20:55:57 +00:00
rebuildFileCache.php Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
rebuildImages.php Fixed E_STRICT errors about method signatures not matching 2010-02-10 20:26:07 +00:00
rebuildInterwiki.inc More doxygen fixes: 2009-12-08 19:19:24 +00:00
rebuildInterwiki.php Doc fixes, add new Wikimedia group for doxygen so we can set this stuff apart. 2009-08-05 00:34:18 +00:00
rebuildLocalisationCache.php Merge and clean up memory_limit hacks from wmf-deployment r53208. 2009-09-14 22:10:10 +00:00
rebuildmessages.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
rebuildrecentchanges.php * Replaced LIMIT with limitResult call in rebuildrecentchanges.php 2009-10-28 19:15:19 +00:00
rebuildtextindex.php Fix child class visibility 2010-03-10 12:59:44 +00:00
refreshImageCount.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
refreshLinks.php Make 'start' not required. As requested by ^demon on IRC... 2010-01-13 18:28:31 +00:00
removeUnusedAccounts.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
renameDbPrefix.php Fix child class visibility 2010-03-10 12:59:44 +00:00
renamewiki.php Fix child class visibility 2010-03-10 12:59:44 +00:00
renderDump.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
rollbackEdits.php Removed colum names from WHERE clause so that it doesn't break for wiki having tables prefix 2010-02-05 15:10:43 +00:00
runBatchedQuery.php Fix child class visibility 2010-03-10 12:59:44 +00:00
runJobs.php Followup r62067, drop $wgUseNormalUser as un-needed 2010-02-10 01:43:18 +00:00
showJobs.php Added --group option to show number of jobs per job type 2009-08-14 11:15:47 +00:00
showStats.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
sql.php Fix child class visibility 2010-03-10 12:59:44 +00:00
sqlite.php Fix child class visibility 2010-03-10 12:59:44 +00:00
stats.php Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +00:00
tables.sql Changed all *_mime_minor field lengths to 100; current 32 does not support some OpenDocument mimes 2010-02-23 11:24:40 +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 Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +00:00
update.php Adjust wording of r62052 2010-02-07 17:38:46 +00:00
updateArticleCount.php * (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL 2009-10-22 15:51:01 +00:00
updateDoubleWidthSearch.php Follow-up r61856 2010-03-10 21:54:23 +00:00
updateRestrictions.php * batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreach ( $res as $row )" 2009-08-17 21:15:31 +00:00
updaters.inc call populateRevisionLength.php from updaters.inc; make updaters.inc use populate*.php instead of the old populate*.inc scripts for other population tasks; remove the now obsolete populate*.inc files; misc. fixes 2010-03-03 21:15:05 +00:00
updateSearchIndex.php Follow-up r61856 2010-03-10 21:54:23 +00:00
updateSpecialPages.php Followup r60051, with the rest of the callers and removing a useless subclassing from DatabaseMssql 2009-12-14 23:18:03 +00:00
upgrade1_5.php Some measures to prevent people from update.php/upgrade1_5.php confusion: the latter now displays a warning and requires --update switch to do something. Probably, it's time to put it to death completely? 2009-11-12 13:12:18 +00:00
userDupes.inc
userOptions.inc Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Maintenance.php using the full path every time. 2009-08-03 21:56:41 +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 Redo addArgs() as addArg() so we can actually do useful things with arguments like descriptions and proper requirement checks, similar to addOption() 2009-08-18 23:06:24 +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