doctrine/migrations — Issue #57: $table->renameColumn() drops the column
Author: dinamic
Created: 2011-12-19 13:03:55+00:00
State: open

In one of my migration scripts I needed to rename the column and tried to use the renameColumn() method.

Unfortunately, this did not worked - it only dropped it.

Looking at the code of the method, there's definitely something missing:

```
/**
* Rename Column
*
* @param string $oldColumnName
* @param string $newColumnName
* @return Table
*/
public function renameColumn($oldColumnName, $newColumnName)
{
$column = $this->getColumn($oldColumnName);
$this->dropColumn($oldColumnName);

$column->_setName($newColumnName);
return $this;
}
```