MediaWiki
master
InsertUpdateKeysTask.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Installer\Task
;
4
5
use
MediaWiki\Installer\DatabaseUpdater
;
6
use
MediaWiki\Status\Status
;
7
13
class
InsertUpdateKeysTask
extends
Task
{
14
public
function
getName
() {
15
return
'updates'
;
16
}
17
18
public
function
getDependencies
() {
19
return
'tables'
;
20
}
21
22
public
function
execute
():
Status
{
23
$updater =
DatabaseUpdater
::newForDB(
24
$this->
definitelyGetConnection
(
ITaskContext
::CONN_CREATE_TABLES ) );
25
$updater->
insertInitialUpdateKeys
();
26
return
Status::newGood();
27
}
28
}
MediaWiki\Installer\DatabaseUpdater
Apply database changes after updating MediaWiki.
Definition
DatabaseUpdater.php:55
MediaWiki\Installer\DatabaseUpdater\insertInitialUpdateKeys
insertInitialUpdateKeys()
Add initial keys to the updatelog table.
Definition
DatabaseUpdater.php:681
MediaWiki\Installer\Task\InsertUpdateKeysTask
Insert the initial updatelog table rows.
Definition
InsertUpdateKeysTask.php:13
MediaWiki\Installer\Task\InsertUpdateKeysTask\getName
getName()
Get the symbolic name of the task.
Definition
InsertUpdateKeysTask.php:14
MediaWiki\Installer\Task\InsertUpdateKeysTask\getDependencies
getDependencies()
Get a list of names or aliases of tasks that must be done prior to this task.
Definition
InsertUpdateKeysTask.php:18
MediaWiki\Installer\Task\InsertUpdateKeysTask\execute
execute()
Execute the task.
Definition
InsertUpdateKeysTask.php:22
MediaWiki\Installer\Task\Task
Base class for installer tasks.
Definition
Task.php:24
MediaWiki\Installer\Task\Task\definitelyGetConnection
definitelyGetConnection(string $type)
Get a database connection, and throw if a connection could not be obtained.
Definition
Task.php:214
MediaWiki\Status\Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:54
MediaWiki\Installer\Task\ITaskContext
Dependency bundle and execution context for installer tasks.
Definition
ITaskContext.php:14
MediaWiki\Installer\Task
Definition
AddWikiRestoredServicesProvider.php:3
includes
installer
Task
InsertUpdateKeysTask.php
Generated on Tue Jan 7 2025 20:23:16 for MediaWiki by
1.10.0