MediaWiki REL1_40
Wikimedia\Rdbms\SchemaChangeBuilder Interface Reference

Interface SchemaChangeBuilder that gets a definition and produces ALTER TABLE SQL based on RDBMS. More...

Inherited by Wikimedia\Rdbms\DoctrineSchemaChangeBuilder.

Public Member Functions

 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> ],.
 

Detailed Description

Interface SchemaChangeBuilder that gets a definition and produces ALTER TABLE SQL based on RDBMS.

@experimental

Stability: unstable

Definition at line 11 of file SchemaChangeBuilder.php.

Member Function Documentation

◆ getSchemaChangeSql()

Wikimedia\Rdbms\SchemaChangeBuilder::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[]

Implemented in Wikimedia\Rdbms\DoctrineSchemaChangeBuilder.


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