-
-
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
Regression in 2.9 constantly outputting table differences #3427
Comments
@cs278 is it possible to isolate this into a test case? |
@Ocramius I guess so, as the root cause is that the Type is not the same instance. Does the patch seem reasonable or should I be comparing types in another way? |
No idea: I'd need a test first. |
I created a merge request for this. #3456 I added two unit tests. Do you want to see a more thorough test case? |
Fixed by #3456. |
@garret-gunter @morozov Sounds like this issue can be closed now, right? |
@SenseException, yes. Thank you. |
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. |
Bug Report
Summary
I've tried to upgrade a project to DBAL 2.9.2 from 2.8.1, however the Doctrine bundle schema diff command constantly outputs schema changes. This is triggered as we've overloaded the default
datetime
type withdatetime_immutable
.Current behaviour
Schema diff constantly generates the following query:
How to reproduce
Given schema:
Running the following, will exit 0 on 2.8.1 and error on 2.9.2.
Expected behaviour
No update queries should be generated.
Patch
Cause: dca1465#diff-6a252b2e905db4e03fc6a121a41e6466L415
This fixes the problem, not entirely sure if this is the correct resolution though.
The text was updated successfully, but these errors were encountered: