The API gives the code as:
public function up()
{
$this->addColumn('table_name', 'column_name', 'string', $options);
}
but there’s no documentation for what can be included in the options array.
http://www.doctrine-project.org/Doctrine_Migration_Base/1_2#method_addcolumn
The documentation is wrong. Looking in Doctrine/Migration/base.php, you can see the following function prototype:
So to add the length, you give it as the 4th parameter. I’m ignoring the options for the moment.