public function compare(Schema $oldSchema, Schema $newSchema)
    {
        $createdTables = $this->getCreatedTables($oldSchema, $newSchema);
        $alteredTables = $this->getAlteredTables($oldSchema, $newSchema);
        $droppedTables = $this->getDroppedTables($oldSchema, $newSchema);

        $this->detectRenamedTables($createdTables, $droppedTables, $alteredTables);

        return new SchemaDiff(
            $oldSchema,
            $newSchema,
            $createdTables,
            $alteredTables,
            $droppedTables,
            $this->getCreatedSequences($oldSchema, $newSchema),
            $this->getDroppedSequences($oldSchema, $newSchema),
            $this->getCreatedViews($oldSchema, $newSchema),
            $this->getDroppedViews($oldSchema, $newSchema)
        );
    }
public function compare(Schema $oldSchema, Schema $newSchema)
    {
        $createdTables = $this->getCreatedTables($oldSchema, $newSchema);
        $alteredTables = $this->getAlteredTables($oldSchema, $newSchema);
        $droppedTables = $this->getDroppedTables($oldSchema, $newSchema);

        $this->detectRenamedTables($createdTables, $droppedTables, $alteredTables);

        return new SchemaDiff(
            $oldSchema,
            $newSchema,
            $createdTables,
            $alteredTables,
            $droppedTables,
            $this->getCreatedSequences($oldSchema, $newSchema),
            $this->getDroppedSequences($oldSchema, $newSchema),
            $this->getCreatedViews($oldSchema, $newSchema),
            $this->getDroppedViews($oldSchema, $newSchema)
        );
    }
public function compare ( Schema $ oldSchema , Schema $ newSchema ) { $ createdTables = $ this -> getCreatedTables ( $ oldSchema , $ newSchema ) ; $ alteredTables = $ this -> getAlteredTables ( $ oldSchema , $ newSchema ) ; $ droppedTables = $ this -> getDroppedTables ( $ oldSchema , $ newSchema ) ; $ this -> detectRenamedTables ( $ createdTables , $ droppedTables , $ alteredTables ) ; return new SchemaDiff ( $ oldSchema , $ newSchema , $ createdTables , $ alteredTables , $ droppedTables , $ this -> getCreatedSequences ( $ oldSchema , $ newSchema ) , $ this -> getDroppedSequences ( $ oldSchema , $ newSchema ) , $ this -> getCreatedViews ( $ oldSchema , $ newSchema ) , $ this -> getDroppedViews ( $ oldSchema , $ newSchema ) ) ; }
Compares two schemas.

@param \Fridge\DBAL\Schema\Schema $oldSchema The old schema.
@param \Fridge\DBAL\Schema\Schema $newSchema The new schema.

@return \Fridge\DBAL\Schema\Diff\SchemaDiff The difference between the two schemas.
Compares two schemas .