Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4093827
ExtensionTablesTask.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
ExtensionTablesTask.php
View Options
<?php
namespace
MediaWiki\Installer\Task
;
use
MediaWiki\Installer\DatabaseUpdater
;
use
MediaWiki\Status\Status
;
/**
* Run extension updates in order to install extension tables
*
* @internal For use by the installer
*/
class
ExtensionTablesTask
extends
Task
{
/** @inheritDoc */
public
function
getName
()
{
return
'extension-tables'
;
}
/** @inheritDoc */
public
function
getDependencies
()
{
return
[
'services'
,
'HookContainer'
,
'tables'
];
}
public
function
isSkipped
():
bool
{
return
!
$this
->
getOption
(
'Extensions'
);
}
public
function
execute
():
Status
{
$status
=
$this
->
getConnection
(
ITaskContext
::
CONN_CREATE_TABLES
);
if
(
!
$status
->
isOK
()
)
{
return
$status
;
}
// Now run updates to create tables for old extensions
$updater
=
DatabaseUpdater
::
newForDB
(
$status
->
getDB
(),
(
bool
)
$this
->
getOption
(
'Shared'
)
);
$updater
->
setAutoExtensionHookContainer
(
$this
->
getHookContainer
()
);
$updater
->
doUpdates
(
[
'extensions'
]
);
return
$status
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 13:00 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
42/64/cda64c1a307e756b1294a981a747
Default Alt Text
ExtensionTablesTask.php (1006 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment