Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7401037
WebUpgradeTask.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
WebUpgradeTask.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment