Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429844
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
Sat, May 16, 18:05 (8 h, 43 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5e/e8/e34bd116722a7ffb9e351d5129e0
Default Alt Text
ExtensionTablesTask.php (1006 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment