MediaWiki  master
Wikimedia\Rdbms\SchemaChangeBuilder Interface Reference

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

Inheritance diagram for Wikimedia\Rdbms\SchemaChangeBuilder:

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

Detailed Description

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

@experimental @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: