MediaWiki master
InsertUpdateKeysTask.php
Go to the documentation of this file.
1<?php
2
4
7
15 public function getName() {
16 return 'updates';
17 }
18
20 public function getDependencies() {
21 return 'tables';
22 }
23
24 public function execute(): Status {
25 $updater = DatabaseUpdater::newForDB(
26 $this->definitelyGetConnection( ITaskContext::CONN_CREATE_TABLES ) );
27 $updater->insertInitialUpdateKeys();
28 return Status::newGood();
29 }
30}
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.string
getDependencies()
Get a list of names or aliases of tasks that must be done prior to this task.to override string|strin...
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:212
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:44
Dependency bundle and execution context for installer tasks.