2004-10-13 07:38:43 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Run all updaters.
|
|
|
|
|
*
|
2008-07-19 12:15:07 +00:00
|
|
|
* This is used when the database schema is modified and we need to apply patches.
|
|
|
|
|
*
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @file
|
2004-10-13 07:38:43 +00:00
|
|
|
* @todo document
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @ingroup Maintenance
|
2005-08-02 13:35:19 +00:00
|
|
|
*/
|
2004-10-13 07:38:43 +00:00
|
|
|
|
|
|
|
|
/** */
|
2005-08-20 01:57:32 +00:00
|
|
|
$wgUseMasterForMaintenance = true;
|
2009-06-09 17:04:16 +00:00
|
|
|
require( "commandLine.inc" );
|
|
|
|
|
require( "updaters.inc" );
|
2004-10-13 07:38:43 +00:00
|
|
|
$wgTitle = Title::newFromText( "MediaWiki database updater" );
|
2006-04-26 20:42:15 +00:00
|
|
|
|
|
|
|
|
echo( "MediaWiki {$wgVersion} Updater\n\n" );
|
|
|
|
|
|
2006-11-11 16:59:32 +00:00
|
|
|
install_version_checks();
|
|
|
|
|
|
2006-04-26 20:42:15 +00:00
|
|
|
# Attempt to connect to the database as a privileged user
|
|
|
|
|
# This will vomit up an error if there are permissions problems
|
2009-06-09 17:04:16 +00:00
|
|
|
$wgDatabase = wfGetDB( DB_MASTER );
|
2004-10-13 07:38:43 +00:00
|
|
|
|
2006-10-04 09:06:18 +00:00
|
|
|
print "Going to run database updates for ".wfWikiID()."\n";
|
2004-12-10 06:05:30 +00:00
|
|
|
print "Depending on the size of your database this may take a while!\n";
|
|
|
|
|
|
2005-04-25 12:03:57 +00:00
|
|
|
if( !isset( $options['quick'] ) ) {
|
2005-06-22 10:11:08 +00:00
|
|
|
print "Abort with control-c in the next five seconds... ";
|
2009-06-09 17:04:16 +00:00
|
|
|
wfCountDown( 5 );
|
2005-03-09 15:12:19 +00:00
|
|
|
}
|
2004-12-10 06:05:30 +00:00
|
|
|
|
2006-12-23 13:55:24 +00:00
|
|
|
$shared = isset( $options['doshared'] );
|
|
|
|
|
$purge = !isset( $options['nopurge'] );
|
2006-01-17 11:48:18 +00:00
|
|
|
|
2006-12-23 13:55:24 +00:00
|
|
|
do_all_updates( $shared, $purge );
|
2004-10-13 07:38:43 +00:00
|
|
|
|
|
|
|
|
print "Done.\n";
|
|
|
|
|
|
2007-06-29 01:19:14 +00:00
|
|
|
|