final class DbalSchemaDiff (View source)

internal  
 

Methods

static array
determineRequiredSqlStatements(Connection $connection, Schema $schema)

Compares the tables of the given $schema with existing tables for the given $connection and returns an array of required CREATE and ALTER TABLE statements if they don't match

Details

static array determineRequiredSqlStatements(Connection $connection, Schema $schema)

Compares the tables of the given $schema with existing tables for the given $connection and returns an array of required CREATE and ALTER TABLE statements if they don't match

Parameters

Connection $connection
Schema $schema

Return Value

array

Array of SQL statements that have to be executed in order to create/adjust the tables