MediaWiki master
InsertUpdateKeysTask.php
Go to the documentation of this file.
1<?php
2
4
7
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}
Apply database changes after updating MediaWiki.
insertInitialUpdateKeys()
Add initial keys to the updatelog table.
Insert the initial updatelog table rows.
getName()
Get the symbolic name of the task.
getDependencies()
Get a list of names or aliases of tasks that must be done prior to this task.
Base class for installer tasks.
Definition Task.php:24
definitelyGetConnection(string $type)
Get a database connection, and throw if a connection could not be obtained.
Definition Task.php:214
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:54
Dependency bundle and execution context for installer tasks.