added /*$wgDBprefix*/ in various places, to support upgrading from old prefixed datab...
[mediawiki.git] / maintenance / update.php
blob1bd6cb26a2c18a947fdcaff754fe8d15639920a8
1 <?php
2 /**
3 * Run all updaters.
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
10 /** */
11 require_once( "commandLine.inc" );
12 require_once( "updaters.inc" );
13 $wgTitle = Title::newFromText( "MediaWiki database updater" );
14 $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
16 print "Going to run database updates for $wgDBname\n";
17 print "Depending on the size of your database this may take a while!\n";
18 print "Abort with control-c in the next five seconds or...\n";
19 sleep(5);
22 do_all_updates();
24 print "Done.\n";