public static function computeDiff(Table $fromTable, Table $toTable, $caseInsensitive = false)
    {
        $tc = new self();

        $tc->setFromTable($fromTable);
        $tc->setToTable($toTable);

        $differences = 0;
        $differences += $tc->compareColumns($caseInsensitive);
        $differences += $tc->comparePrimaryKeys($caseInsensitive);
        $differences += $tc->compareIndices($caseInsensitive);
        $differences += $tc->compareForeignKeys($caseInsensitive);

        return ($differences > 0) ? $tc->getTableDiff() : false;
    }
public static function computeDiff(Table $fromTable, Table $toTable, $caseInsensitive = false)
    {
        $tc = new self();

        $tc->setFromTable($fromTable);
        $tc->setToTable($toTable);

        $differences = 0;
        $differences += $tc->compareColumns($caseInsensitive);
        $differences += $tc->comparePrimaryKeys($caseInsensitive);
        $differences += $tc->compareIndices($caseInsensitive);
        $differences += $tc->compareForeignKeys($caseInsensitive);

        return ($differences > 0) ? $tc->getTableDiff() : false;
    }
public static function computeDiff ( Table $ fromTable , Table $ toTable , $ caseInsensitive = false ) { $ tc = new self ( ) ; $ tc -> setFromTable ( $ fromTable ) ; $ tc -> setToTable ( $ toTable ) ; $ differences = 0 ; $ differences += $ tc -> compareColumns ( $ caseInsensitive ) ; $ differences += $ tc -> comparePrimaryKeys ( $ caseInsensitive ) ; $ differences += $ tc -> compareIndices ( $ caseInsensitive ) ; $ differences += $ tc -> compareForeignKeys ( $ caseInsensitive ) ; return ( $ differences > 0 ) ? $ tc -> getTableDiff ( ) : false ; }
Returns the computed difference between two table objects.

@param  Table             $fromTable
@param  Table             $toTable
@param  boolean           $caseInsensitive
@return TableDiff|Boolean
Returns the computed difference between two table objects .