2 require_once 'counter.php';
8 * @subpackage Maintenance
12 $wgUseMasterForMaintenance = true;
13 $options = array( 'quick' );
14 require_once( "commandLine.inc" );
15 require_once( "updaters.inc" );
16 $wgTitle = Title
::newFromText( "MediaWiki database updater" );
17 $dbclass = 'Database'.ucfirst($wgDBtype);
18 require_once("$dbclass.php");
20 $wgDatabase = $dbc->newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
22 print "Going to run database updates for $wgDBname\n";
23 print "Depending on the size of your database this may take a while!\n";
25 if( !isset( $options['quick'] ) ) {
26 print "Abort with control-c in the next five seconds... ";
28 for ($i = 6; $i >= 1;) {
35 if ( isset( $options['doshared'] ) ) {
41 do_all_updates( $doShared );