Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4205310
CreateDatabaseTask.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
CreateDatabaseTask.php
View Options
<?php
namespace
MediaWiki\Installer\Task
;
use
MediaWiki\MainConfigNames
;
use
MediaWiki\Status\Status
;
/**
* Create the MySQL/MariaDB or PostgreSQL database
*
* @internal For use by the installer
*/
class
CreateDatabaseTask
extends
Task
{
/** @inheritDoc */
public
function
getName
()
{
return
'database'
;
}
/** @inheritDoc */
public
function
getAliases
()
{
return
'schema'
;
}
public
function
execute
():
Status
{
$creator
=
$this
->
getDatabaseCreator
();
$dbName
=
$this
->
getConfigVar
(
MainConfigNames
::
DBname
);
if
(
!
$creator
->
existsLocally
(
$dbName
)
)
{
return
$creator
->
createLocally
(
$dbName
);
}
return
Status
::
newGood
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 21 2026, 02:47 (12 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1f/61/730221391f1dc4166d0690061460
Default Alt Text
CreateDatabaseTask.php (663 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment