From: Brion Vibber Date: Fri, 10 Dec 2004 06:05:30 +0000 (+0000) Subject: Print the database name and give a chance to abort X-Git-Tag: 1.5.0alpha1~1113 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=21cd7ad7b1524509cec556711a957671f329aacf;p=lhc%2Fweb%2Fwiklou.git Print the database name and give a chance to abort --- diff --git a/maintenance/update.php b/maintenance/update.php index 955be7ddc6..1bd6cb26a2 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -13,6 +13,12 @@ require_once( "updaters.inc" ); $wgTitle = Title::newFromText( "MediaWiki database updater" ); $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname ); +print "Going to run database updates for $wgDBname\n"; +print "Depending on the size of your database this may take a while!\n"; +print "Abort with control-c in the next five seconds or...\n"; +sleep(5); + + do_all_updates(); print "Done.\n";