-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Migration diff command always add migration for default values of custom type fields #2506
Comments
I have found the solution in this blog post from @ricbra: https://blog.vandenbrand.org/2015/06/25/creating-a-custom-doctrine-dbal-type-the-right-way/ You have to add this comment: This is the sample SQL to add that comment:
Then, I suppose this is not a bug in this package and I should open an issue in beberlei/DoctrineExtensions. Maybe they should add this code:
into their CarbonDateTimeType class. Is that correct? |
Hi, the issue imported form Jira can be found here: |
@josecelano maybe realted to #2594 |
Closing due to the lack of feedback. Likely, irrelevant as of #5512. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi. I have the problem described here:
http://stackoverflow.com/a/27557785/3012842
Basically when I use a custom DBAL type like CarbonDateTimeType doctrine always creates a migration for changing the default value of that field.
The migration looks like:
In stackoverflow @vbence says it's a bug but the link is to the old jira bug tracker. And I do not know if th bug is fixed or how can I fix it. The solution in stackoverflow is not valid in this case because that type already contains the method
requiresSQLCommentHint
Thanks.
The text was updated successfully, but these errors were encountered: