mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-632: Lost auto_increment in all primary key after updating to git HEAD #780
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@doctrinebot commented on GitHub (Jun 11, 2010):
@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):
Issue was closed with resolution "Duplicate"
@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:
Ok, forget it, I read bout git submodules and I think a have the good dbal and common now