Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using this type schema tools always thinks that schema is not up-to-date #6

Closed
jkuchar opened this issue Nov 20, 2015 · 8 comments
Labels

Comments

@jkuchar
Copy link

jkuchar commented Nov 20, 2015

Then I create entity with you uuid type, for every use Doctrine schema tools generates this king of "update" SQL:

ALTER TABLE table ALTER id_table TYPE UUID;
ALTER TABLE table ALTER id_table DROP DEFAULT;
@jkuchar jkuchar changed the title When using this type schema tools always thinks that schem is not up-to-date When using this type schema tools always thinks that schema is not up-to-date Nov 20, 2015
@ramsey
Copy link
Owner

ramsey commented Nov 25, 2015

@marijn or @WouterSioen, would either of you mind taking a look at this? Thanks!

@marijn
Copy link

marijn commented Nov 25, 2015

Yeah, this is a bug in Doctrine itself if I'm not mistaken.

@marijn
Copy link

marijn commented Nov 25, 2015

I think it's this one: http://www.doctrine-project.org/jira/browse/DBAL-63

@ramsey
Copy link
Owner

ramsey commented Nov 25, 2015

That looks like it was resolved in November 2010. Is it still an issue in Doctrine?

@marijn
Copy link

marijn commented Nov 25, 2015

Not sure. What is the version of Doctrine you're on @jkuchar?

@WouterSioen
Copy link
Contributor

Normally, the SQL Comment hint should fix this issue. @jkuchar what kind of database are you using this on?

@jkuchar
Copy link
Author

jkuchar commented Nov 26, 2015

Guys! I‘m sorry, my mistake. I was trying to override doctrine guid type with uuid and it exploded.

CONCLUSION: Do not mix GUID and UUID Doctrine types, they are NOT equal!

@jkuchar jkuchar closed this as completed Nov 26, 2015
@WouterSioen
Copy link
Contributor

glad you found it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants