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