tags:

views:

30

answers:

1

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.

+1  A: 
$options = array('auto_increment' => true);
$this->changeColumn('table_name', 'column_name', 'integer', $options);
DuoSRX