DDC-632: Lost auto_increment in all primary key after updating to git HEAD #780

Closed
opened 2026-01-22 12:50:08 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 11, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user rickdt:

I was using doctrine 2 Beta1 in my project since it was released.
Doctrine was linked to my project using svn externals (Doctrine http://svn.doctrine-project.org/tags/2.0.0-BETA1/lib/Doctrine)

Yesterday, I tried to update to trunk. Since DBAL and Common were not part of trunk anymore, I tried to simply symlink ORM Common and DBAL from git clone.
http://github.com/doctrine/doctrine2.git
http://github.com/doctrine/dbal.git
http://github.com/doctrine/common.git

After updating the shcema using schemaTool, all id column lost their auto_increment attribute and all INSERT fail.

I tried to revert to BETA1 and the schemaTool does not bring back te lost auto increment.

in SchemaTool::getUpdateSchemaSql()
$fromSchema have idGeneratorType set to 0
$toSchema have idGeneratorType set to 2
but nothing in schemaDiff show this difference

Originally created by @doctrinebot on GitHub (Jun 11, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user rickdt: I was using doctrine 2 Beta1 in my project since it was released. Doctrine was linked to my project using svn externals (Doctrine http://svn.doctrine-project.org/tags/2.0.0-BETA1/lib/Doctrine) Yesterday, I tried to update to trunk. Since DBAL and Common were not part of trunk anymore, I tried to simply symlink ORM Common and DBAL from git clone. http://github.com/doctrine/doctrine2.git http://github.com/doctrine/dbal.git http://github.com/doctrine/common.git After updating the shcema using schemaTool, all id column lost their auto_increment attribute and all INSERT fail. I tried to revert to BETA1 and the schemaTool does not bring back te lost auto increment. in SchemaTool::getUpdateSchemaSql() $fromSchema have idGeneratorType set to 0 $toSchema have idGeneratorType set to 2 but nothing in schemaDiff show this difference
admin added the Bug label 2026-01-22 12:50:08 +01:00
admin closed this issue 2026-01-22 12:50:09 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 11, 2010):

@doctrinebot commented on GitHub (Jun 11, 2010): - duplicates [DBAL-2: Schema Comparator - Changes of only Identifier Strategy are not detected](http://www.doctrine-project.org/jira/browse/DBAL-2)
Author
Owner

@doctrinebot commented on GitHub (Jun 11, 2010):

Comment created by @beberlei:

the HEAD of ORM is linked against DBAL Beta 1 for a reason ;) I know this bug, its related to a change in DBAL-2, which I reopened.

@doctrinebot commented on GitHub (Jun 11, 2010): Comment created by @beberlei: the HEAD of ORM is linked against DBAL Beta 1 for a reason ;) I know this bug, its related to a change in [DBAL-2](http://www.doctrine-project.org/jira/browse/DBAL-2), which I reopened.
Author
Owner

@doctrinebot commented on GitHub (Jun 11, 2010):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Jun 11, 2010): Issue was closed with resolution "Duplicate"
Author
Owner

@doctrinebot commented on GitHub (Jun 11, 2010):

Comment created by rickdt:

Git is a very new thing for me.

Can you tell me where I could have seen that ORM was linked to DBAL Beta1.

I got the ORM souce with
git clone http://github.com/doctrine/doctrine2.git

And DBAL was missing so I assumed I had to clone the dbal repository.

@doctrinebot commented on GitHub (Jun 11, 2010): Comment created by rickdt: Git is a very new thing for me. Can you tell me where I could have seen that ORM was linked to DBAL Beta1. I got the ORM souce with git clone http://github.com/doctrine/doctrine2.git And DBAL was missing so I assumed I had to clone the dbal repository.
Author
Owner

@doctrinebot commented on GitHub (Jun 11, 2010):

Comment created by rickdt:

Ok, forget it, I read bout git submodules and I think a have the good dbal and common now

git submodules init
git submodules update
@doctrinebot commented on GitHub (Jun 11, 2010): Comment created by rickdt: Ok, forget it, I read bout git submodules and I think a have the good dbal and common now ``` git submodules init git submodules update ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#780