开发者

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

开发者 https://www.devze.com 2022-12-24 17:04 出处:网络
I\'am writing a migration in Doctrine and开发者_如何转开发 i have to add a autoincrement to a column, but i don\'t find any information to do so via the changeColumn-method.$options = array(\'auto_inc

I'am writing a migration in Doctrine and开发者_如何转开发 i have to add a autoincrement to a column, but i don't find any information to do so via the changeColumn-method.


$options = array('auto_increment' => true);
$this->changeColumn('table_name', 'column_name', 'integer', $options);


$options = array('auto_increment' => true);
0

精彩评论

暂无评论...
验证码 换一张
取 消