[DBAL-505] Issue whenusing serial columns in PostgreSQL Created: 24/Apr/13 Updated: 22/Dec/13 Resolved: 22/Dec/13
|Component/s:||Drivers, Platforms, Schema Managers|
|Reporter:||jos de witte||Assignee:||Benjamin Eberlei|
When using Doctrine ORM mapping fields like this:
It first creates the migration perfectly as a serial column with the correct schema.
However when making a new migration diff it generates DROP statements for every sequence for these id, so we have to remove them manually every time.
|Comment by Steve Müller [ 19/Dec/13 ]|
I think this has been fixed in this commit: https://github.com/Alan01252/dbal/commit/79e894b4493937c0a6eae2e1c8206b188ac2eb7c
|Comment by Benjamin Eberlei [ 22/Dec/13 ]|
Tried to reproduce even with the schema name, this seems fixed by the commit Steve Müller showed. However this might exist because of the SequenceGenerator line. Can you remove that one? you don't need it with "IDENTITY".
Closing, please reopen when problem persists.