MediaWiki  master
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. More...
 
 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> ],. More...
 

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.

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.


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