-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
Implement platform-aware schema comparison #1229
Conversation
->method('getMigrateFromSql') | ||
->with($toSchema, $this->platform) | ||
->willReturn(['UPDATE table SET value = 1']); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find a way to abide by "don't mock what you don't own" and reduce the big amount of mocking in this test, and gave up… I think it should be reworked, but I'm not sure how.
3edd76c
to
9e44edc
Compare
This should fix many bugs because it eliminates a lot of false positive and false negative diffs.
9e44edc
to
5bf68e9
Compare
|
||
$upSql = isset($comparator) ? | ||
$comparator->compareSchemas($fromSchema, $toSchema)->toSql($this->platform) : | ||
$fromSchema->getMigrateToSql($toSchema, $this->platform); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first, I tried inlining the contents of this method to avoid the deprecation, but then I could no longer mock anything.
This should fix many bugs because it eliminates a lot of false positive
and false negative diffs.
Closes #1227