public function compare($fromTables, $toTables, array $protectedTableNames, $force = false)
    {
        if ($this->response !== null && $force === false) {
            return $this->getResponse();
        }
        if ($force === false) {
            $this->setIgnoredChanges();
        }

        $this->checkTables($fromTables, $toTables);

        // If we have diffs, check if they need to be modified
        if ($this->diffs !== null) {
            $this->adjustDiffs($protectedTableNames);
            $this->addAlterResponses();
        }

        return $this->getResponse();
    }
public function compare($fromTables, $toTables, array $protectedTableNames, $force = false)
    {
        if ($this->response !== null && $force === false) {
            return $this->getResponse();
        }
        if ($force === false) {
            $this->setIgnoredChanges();
        }

        $this->checkTables($fromTables, $toTables);

        // If we have diffs, check if they need to be modified
        if ($this->diffs !== null) {
            $this->adjustDiffs($protectedTableNames);
            $this->addAlterResponses();
        }

        return $this->getResponse();
    }
public function compare ( $ fromTables , $ toTables , array $ protectedTableNames , $ force = false ) { if ( $ this -> response !== null && $ force === false ) { return $ this -> getResponse ( ) ; } if ( $ force === false ) { $ this -> setIgnoredChanges ( ) ; } $ this -> checkTables ( $ fromTables , $ toTables ) ; // If we have diffs, check if they need to be modified if ( $ this -> diffs !== null ) { $ this -> adjustDiffs ( $ protectedTableNames ) ; $ this -> addAlterResponses ( ) ; } return $ this -> getResponse ( ) ; }
Run the update checks and flag if we need an update.

@param Table[] $fromTables
@param Table[] $toTables
@param array   $protectedTableNames
@param bool    $force

@return SchemaCheck
Run the update checks and flag if we need an update .