[DBAL-37] auto increment can not be added to a column, when postgresql is used. Created: 22/Jul/10  Updated: 25/Jul/10  Resolved: 25/Jul/10

Status: Resolved
Project: Doctrine DBAL
Component/s: Platforms
Affects Version/s: 2.0.0-BETA2
Fix Version/s: 2.0.0-BETA3

Type: Bug Priority: Major
Reporter: Ting Wang Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


Attachments: File autoincrementPatch.diff    


To add auto increment to on column using the following code in the
migration class:

array('autoincrement' => true));
$settingIdColumn = $systemSettingsTable->getColumn('setting_id');

This works fine when MySQL is used. But when PostGreSQL is used, this
statement doesn't create any SQL statement.

The patch in attachment could perhaps resolve this problem some way.

Comment by Benjamin Eberlei [ 25/Jul/10 ]

Fixed in current master

Generated at Thu Oct 08 19:54:23 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.