MediaWiki REL1_37
Wikimedia\Rdbms\DoctrineSchemaChangeBuilder Class Reference

@experimental More...

Inheritance diagram for Wikimedia\Rdbms\DoctrineSchemaChangeBuilder:
Collaboration diagram for Wikimedia\Rdbms\DoctrineSchemaChangeBuilder:

Public Member Functions

 __construct (AbstractPlatform $platform)
 A builder object that take abstract schema definition and produces sql to create the tables.
 
 getSchemaChangeSql (array $schemaChangeSpec)
 An example of $schema value: [ 'comment' => 'Adding foo field', 'before' => <Before snapshot of the abstract schema> 'after' => <After snapshot of the abstract schema> ],.
 

Private Member Functions

 getTableSchema (array $tableSpec)
 

Private Attributes

 $platform
 

Detailed Description

@experimental

Stability: unstable

Definition at line 13 of file DoctrineSchemaChangeBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DoctrineSchemaChangeBuilder::__construct ( AbstractPlatform  $platform)

A builder object that take abstract schema definition and produces sql to create the tables.

Parameters
AbstractPlatform$platformA Doctrine Platform object, Can be Mysql, Sqlite, etc.

Definition at line 23 of file DoctrineSchemaChangeBuilder.php.

References Wikimedia\Rdbms\DoctrineSchemaChangeBuilder\$platform.

Member Function Documentation

◆ getSchemaChangeSql()

Wikimedia\Rdbms\DoctrineSchemaChangeBuilder::getSchemaChangeSql ( array  $schemaChangeSpec)

An example of $schema value: [ 'comment' => 'Adding foo field', 'before' => <Before snapshot of the abstract schema> 'after' => <After snapshot of the abstract schema> ],.

Parameters
array$schemaChangeSpec
Returns
string[]

Implements Wikimedia\Rdbms\SchemaChangeBuilder.

Definition at line 34 of file DoctrineSchemaChangeBuilder.php.

◆ getTableSchema()

Wikimedia\Rdbms\DoctrineSchemaChangeBuilder::getTableSchema ( array  $tableSpec)
private

Definition at line 30 of file DoctrineSchemaChangeBuilder.php.

Member Data Documentation

◆ $platform

Wikimedia\Rdbms\DoctrineSchemaChangeBuilder::$platform
private

The documentation for this class was generated from the following file: