7 * @subpackage Maintenance
11 $wgUseMasterForMaintenance = true;
12 $options = array( 'quick' );
13 require_once( "commandLine.inc" );
14 require_once( "updaters.inc" );
15 $wgTitle = Title::newFromText( "MediaWiki database updater" );
16 $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
18 print "Going to run database updates for $wgDBname\n";
19 print "Depending on the size of your database this may take a while!\n";
21 if( !isset( $options['quick'] ) ) {
22 print "Abort with control-c in the next five seconds... ";
24 for ($i = 5; $i >= 0; --$i) {
27 echo( ($i == 0) ? "\n" : chr(8) );