lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
    {
        return [
            $this->getDropIndexSQL($oldIndexName, $tableName),
            $this->getCreateIndexSQL($index, $tableName),
        ];
    }
protected function getRenameIndexSQL($oldIndexName, Index $index, $tableName)
    {
        return [
            $this->getDropIndexSQL($oldIndexName, $tableName),
            $this->getCreateIndexSQL($index, $tableName),
        ];
    }
protected function getRenameIndexSQL ( $ oldIndexName , Index $ index , $ tableName ) { return [ $ this -> getDropIndexSQL ( $ oldIndexName , $ tableName ) , $ this -> getCreateIndexSQL ( $ index , $ tableName ) , ] ; }
Returns the SQL for renaming an index on a table.

@param string $oldIndexName The name of the index to rename from.
@param Index  $index        The definition of the index to rename to.
@param string $tableName    The table to rename the given index on.

@return string[] The sequence of SQL statements for renaming the given index.
Returns the SQL for renaming an index on a table .