static public function computeDiff(Index $fromIndex, Index $toIndex, $caseInsensitive = false)
	{
		// Check for removed index columns in $toIndex
		$fromIndexColumns = $fromIndex->getColumns();
		for($i = 0; $i < count($fromIndexColumns); $i++) {
			$indexColumn = $fromIndexColumns[$i];
			if (!$toIndex->hasColumnAtPosition($i, $indexColumn, null, $caseInsensitive)) {
				return true;
			}
		}

		// Check for new index columns in $toIndex
		$toIndexColumns = $toIndex->getColumns();
		for($i = 0; $i < count($toIndexColumns); $i++) {
			$indexColumn = $toIndexColumns[$i];
			if (!$fromIndex->hasColumnAtPosition($i, $indexColumn, null, $caseInsensitive)) {
				return true;
			}
		}
		
		// Check for difference in unicity
		if ($fromIndex->isUnique() != $toIndex->isUnique()) {
			return true;
		}
		
		return false;
	}