Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
InsertUpdateKeysTask | |
0.00% |
0 / 6 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getDependencies | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
execute | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Installer\Task; |
4 | |
5 | use MediaWiki\Installer\DatabaseUpdater; |
6 | use MediaWiki\Status\Status; |
7 | |
8 | /** |
9 | * Insert the initial updatelog table rows |
10 | * |
11 | * @internal For use by the installer |
12 | */ |
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 | } |