Rya*_*yan 3 php doctrine symfony-1.4
API将代码提供为:
public function up()
{
$this->addColumn('table_name', 'column_name', 'string', $options);
}
Run Code Online (Sandbox Code Playgroud)
但是没有关于可以包含在options数组中的内容的文档.
http://www.doctrine-project.org/Doctrine_Migration_Base/1_2#method_addcolumn
小智 5
对于进入的人:看起来这确实是从数据访问层定义的.以下是DBAL文档中列的选项列表:http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/schema-representation.html