interface SchemaDiffProviderInterface (View source)

Generates Schema objects to be passed to the migrations class.

Methods

Schema
createFromSchema()

Create the schema that represent the current state of the database.

Schema
createToSchema(Schema $fromSchema)

Create the schema that will represent the future state of the database

string[]
getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)

Return an array of sql statement that migrate the database state from the fromSchema to the toSchema.

Details

Schema createFromSchema()

Create the schema that represent the current state of the database.

Return Value

Schema

Schema createToSchema(Schema $fromSchema)

Create the schema that will represent the future state of the database

Parameters

Schema $fromSchema

Return Value

Schema

string[] getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)

Return an array of sql statement that migrate the database state from the fromSchema to the toSchema.

Parameters

Schema $fromSchema
Schema $toSchema

Return Value

string[]