chdir( ".." );
flush();
- define( 'MW_NO_SETUP', true );
$updater = DatabaseUpdater::newForDb( $wgDatabase, false );
$updater->doUpdates();
foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
public function doUpdates( $purge = true ) {
global $wgVersion;
+ if ( !defined( 'MW_NO_SETUP' ) ) {
+ define( 'MW_NO_SETUP', true );
+ }
+
$this->runUpdates( $this->getCoreUpdateList(), false );
$this->runUpdates( $this->getOldGlobalUpdates(), false );
$this->runUpdates( $this->getExtensionUpdates(), true );