public function getSchemaDiff(bool $reverseDiff = false): SchemaDiff
    {
        $currentSchema = $this->getCurrentSchema();
        $newSchema = $this->loadSchemaFile();
        $comparator = new Comparator();
        if ($reverseDiff) {
            return $comparator->compare($newSchema, $currentSchema);
        } else {
            return $comparator->compare($currentSchema, $newSchema);
        }
    }
public function getSchemaDiff(bool $reverseDiff = false): SchemaDiff
    {
        $currentSchema = $this->getCurrentSchema();
        $newSchema = $this->loadSchemaFile();
        $comparator = new Comparator();
        if ($reverseDiff) {
            return $comparator->compare($newSchema, $currentSchema);
        } else {
            return $comparator->compare($currentSchema, $newSchema);
        }
    }
public function getSchemaDiff ( bool $ reverseDiff = false ) : SchemaDiff { $ currentSchema = $ this -> getCurrentSchema ( ) ; $ newSchema = $ this -> loadSchemaFile ( ) ; $ comparator = new Comparator ( ) ; if ( $ reverseDiff ) { return $ comparator -> compare ( $ newSchema , $ currentSchema ) ; } else { return $ comparator -> compare ( $ currentSchema , $ newSchema ) ; } }
Get diff between current schema and config file
@return SchemaDiff
Get diff between current schema and config file