我正在用Doctrine编写迁移,我必须向列添加自动增量,但是我找不到通过changeColumn方法执行的任何信息。
$options = array('auto_increment' => true);
$this->changeColumn('table_name', 'column_name', 'integer', $options);
$options = array('auto_increment' => true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.