Print the database name and give a chance to abort
[lhc/web/wiklou.git] / maintenance / update.php
index 955be7d..1bd6cb2 100644 (file)
@@ -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";