简体   繁体   中英

How can i add a autoincrement to a column with a doctrinemigration?

我正在用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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM