Page MenuHomeWickedGov Phorge

WebUpgradeTask.php
No OneTemporary

Size
764 B
Referenced Files
None
Subscribers
None

WebUpgradeTask.php

<?php
namespace MediaWiki\Installer\Task;
use MediaWiki\Installer\DatabaseUpdater;
use MediaWiki\Status\Status;
/**
* TODO: remove this and run web upgrade with normal startup (T386661)
*/
class WebUpgradeTask extends Task {
public function getName() {
return 'upgrade';
}
public function getDependencies() {
return [ 'HookContainer' ];
}
public function execute(): Status {
$status = $this->getConnection( ITaskContext::CONN_CREATE_TABLES );
if ( !$status->isOK() ) {
return $status;
}
$updater = DatabaseUpdater::newForDB(
$status->getDB(),
(bool)$this->getOption( 'Shared' )
);
$updater->setAutoExtensionHookContainer( $this->getHookContainer() );
$updater->doUpdates();
$updater->purgeCache();
return $status;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 17:09 (12 h, 17 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bb/4f/445b51095f1716fe85f15fe04e4f
Default Alt Text
WebUpgradeTask.php (764 B)

Event Timeline