This class provides database comparison functionality.
Example that shows how to make a comparison between a file on disk and a database.
Source for this file: /DatabaseSchema/src/comparator.php
Version: | //autogentag// |
public static ezcDbSchemaDiff |
compareSchemas(
$fromSchema
, $toSchema
)
Returns a ezcDbSchemaDiff object containing the differences between the schemas $fromSchema and $toSchema. |
Returns a ezcDbSchemaDiff object containing the differences between the schemas $fromSchema and $toSchema.
The returned diferences 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.
Name | Type | Description |
---|---|---|
$fromSchema |
ezcDbSchema | |
$toSchema |
ezcDbSchema |