Run ulimit4.sh using /bin/bash to avoid noexec
[lhc/web/wiklou.git] / maintenance / upgrade1_5.php
1 <?php
2 /**
3 * Alternate 1.4 -> 1.5 schema upgrade.
4 * This does only the main tables + UTF-8 and is designed to allow upgrades to
5 * interleave with other updates on the replication stream so that large wikis
6 * can be upgraded without disrupting other services.
7 *
8 * Note: this script DOES NOT apply every update, nor will it probably handle
9 * much older versions, etc.
10 * Run this, FOLLOWED BY update.php, for upgrading from 1.4.5 release to 1.5.
11 *
12 * @file
13 * @ingroup Maintenance
14 */
15
16 $options = array( 'step', 'noimages' );
17
18 require_once( dirname( __FILE__ ) . '/commandLine.inc' );
19 require_once( 'FiveUpgrade.inc' );
20
21 echo "ATTENTION: This script is for upgrades from 1.4 to 1.5 (NOT 1.15) in very special cases.\n";
22 echo "Use update.php for usual updates.\n";
23
24 // Seems to confuse some people
25 if ( !array_search( '--upgrade', $_SERVER['argv'] ) ) {
26 echo "Please run this script with --upgrade key to actually run the updater.\n";
27 die;
28 }
29
30 $upgrade = new FiveUpgrade();
31 $step = isset( $options['step'] ) ? $options['step'] : null;
32 $upgrade->upgrade( $step );
33
34