class Comparator (View source)
Compares two Schemas and return an instance of SchemaDiff.
at line 40
compare(Schema $fromSchema, Schema $toSchema)
Returns a SchemaDiff object containing the differences between the schemas $fromSchema and $toSchema.
The returned differences are returned in such a way that they contain the operations to change the schema stored in $fromSchema to the schema that is stored in $toSchema.
Returns the difference between the tables $table1 and $table2.
If there are no differences this method returns the boolean false.
Returns the difference between the fields $field1 and $field2.
If there are differences this method returns $field2, otherwise the boolean false.