Comparator extends Comparator

Compares two Schemas and returns an instance of SchemaDiff.

Internal

not part of public core API.

Table of Contents

Properties

$databasePlatform  : AbstractPlatform
$platform  : AbstractPlatform

Methods

__construct()  : mixed
compareSchemas()  : SchemaDiff
compareTables()  : TableDiff
Returns the difference between the tables $fromTable and $toTable.

Properties

$databasePlatform

protected AbstractPlatform $databasePlatform

$platform

protected AbstractPlatform $platform

Methods

__construct()

public __construct(AbstractPlatform $platform) : mixed
Parameters
$platform : AbstractPlatform

compareSchemas()

public compareSchemas(Schema $oldSchema, Schema $newSchema) : SchemaDiff
Parameters
$oldSchema : Schema
$newSchema : Schema
Return values
SchemaDiff

compareTables()

Returns the difference between the tables $fromTable and $toTable.

public compareTables(Table $oldTable, Table $newTable) : TableDiff

If there are no differences this method returns the boolean false.

Parameters
$oldTable : Table
$newTable : Table
Return values
TableDiff

        
On this page

Search results