public function compareIndexes(Index $oldIndex, Index $newIndex)
    {
        return ($oldIndex->getName() !== $newIndex->getName())
            || ($oldIndex->getColumnNames() !== $newIndex->getColumnNames())
            || ($oldIndex->isUnique() !== $newIndex->isUnique());
    }
public function compareIndexes(Index $oldIndex, Index $newIndex)
    {
        return ($oldIndex->getName() !== $newIndex->getName())
            || ($oldIndex->getColumnNames() !== $newIndex->getColumnNames())
            || ($oldIndex->isUnique() !== $newIndex->isUnique());
    }
public function compareIndexes ( Index $ oldIndex , Index $ newIndex ) { return ( $ oldIndex -> getName ( ) !== $ newIndex -> getName ( ) ) || ( $ oldIndex -> getColumnNames ( ) !== $ newIndex -> getColumnNames ( ) ) || ( $ oldIndex -> isUnique ( ) !== $ newIndex -> isUnique ( ) ) ; }
Compares two indexes.

@param \Fridge\DBAL\Schema\Index $oldIndex The old index.
@param \Fridge\DBAL\Schema\Index $newIndex The new index.

@return boolean TRUE if indexes are different else FALSE.
Compares two indexes .