Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4160582
DoctrineSchemaBuilder.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
876 B
Referenced Files
None
Subscribers
None
DoctrineSchemaBuilder.php
View Options
<?php
namespace
Wikimedia\Rdbms
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
Doctrine\DBAL\Schema\Schema
;
/**
* @experimental
* @unstable
*/
class
DoctrineSchemaBuilder
implements
SchemaBuilder
{
use
DoctrineAbstractSchemaTrait
;
private
Schema
$schema
;
private
AbstractPlatform
$platform
;
/**
* A builder object that take abstract schema definition and produces sql to create the tables.
*
* @param AbstractPlatform $platform A Doctrine Platform object, Can be Mysql, Sqlite, etc.
*/
public
function
__construct
(
AbstractPlatform
$platform
)
{
$this
->
schema
=
new
Schema
();
$this
->
platform
=
$platform
;
}
/**
* @inheritDoc
*/
public
function
addTable
(
array
$schema
)
{
$this
->
addTableToSchema
(
$this
->
schema
,
$schema
);
}
/**
* @inheritDoc
*/
public
function
getSql
()
{
return
$this
->
schema
->
toSql
(
$this
->
platform
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 20 2026, 00:31 (9 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/a8/7240e7be1ec9ba0d12919360f559
Default Alt Text
DoctrineSchemaBuilder.php (876 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment