Some measures to prevent people from update.php/upgrade1_5.php confusion: the latter...
authorMax Semenik <maxsem@users.mediawiki.org>
Thu, 12 Nov 2009 13:12:18 +0000 (13:12 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Thu, 12 Nov 2009 13:12:18 +0000 (13:12 +0000)
RELEASE-NOTES
maintenance/upgrade1_5.php

index 989c80b..68c5adf 100644 (file)
@@ -277,6 +277,7 @@ Hopefully we will remove this configuration var soon)
 * Added search capabilities to SQLite backend
 * rebuildtextindex.php maintenance script now supports databases other than
   MySQL
+* upgrade1_5.php now requires to be run --update option to prevent confusion
 
 === Bug fixes in 1.16 ===
 
index 23eb30f..4834a4a 100644 (file)
@@ -18,6 +18,15 @@ $options = array( 'step', 'noimages' );
 require_once( dirname(__FILE__) . '/commandLine.inc' );
 require_once( 'FiveUpgrade.inc' );
 
+echo "ATTENTION: This script is for upgrades from 1.4 to 1.5 (NOT 1.15) in very special cases.\n";
+echo "Use update.php for usual updates.\n";
+
+// Seems to confuse some people
+if ( !array_search( '--upgrade', $_SERVER['argv'] ) ) {
+       echo "Please run this script with --upgrade key to actually run the updater.\n";
+       die;
+}
+
 $upgrade = new FiveUpgrade();
 $step = isset( $options['step'] ) ? $options['step'] : null;
 $upgrade->upgrade( $step );