src/Database/Migration/Generator.php
public function compareSchema($newSchema, $oldSchema)
    {
        $this->getOutput()->writeln('Comparing schema file to the database.');

        // To add or modify
        $result = $this->diff($newSchema, $oldSchema);

        // To remove
        $result2 = $this->diff($oldSchema, $newSchema);

        return [$result, $result2];
    }
public function compareSchema($newSchema, $oldSchema)
    {
        $this->getOutput()->writeln('Comparing schema file to the database.');

        // To add or modify
        $result = $this->diff($newSchema, $oldSchema);

        // To remove
        $result2 = $this->diff($oldSchema, $newSchema);

        return [$result, $result2];
    }
public function compareSchema ( $ newSchema , $ oldSchema ) { $ this -> getOutput ( ) -> writeln ( 'Comparing schema file to the database.' ) ; // To add or modify $ result = $ this -> diff ( $ newSchema , $ oldSchema ) ; // To remove $ result2 = $ this -> diff ( $ oldSchema , $ newSchema ) ; return [ $ result , $ result2 ] ; }
Compare database schemas.

@param array $newSchema
@param array $oldSchema

@return array Difference
Compare database schemas .