-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
#7841 SchemaTool generates extra diff for platforms without FK support #7842
Conversation
ok, changed |
Commits are squashed after both(scrutinizer, travis) checks passed |
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.
@vpArth thanks for sending this patch! Here are a few comments 👍
I also believe that this was intended as a bug fix, right? If so, it must use 2.6
as base instead of `master.
tests/Doctrine/Tests/ORM/Functional/SchemaTool/SqliteSchemaToolTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Tests/ORM/Functional/SchemaTool/SqliteSchemaToolTest.php
Outdated
Show resolved
Hide resolved
tests/Doctrine/Tests/ORM/Functional/SchemaTool/SqliteSchemaToolTest.php
Outdated
Show resolved
Hide resolved
vendor/bin/phpcs fails every single file on 2.6 branch. is it ok? |
@vpArth we have configured it to validate the diff in PRs because of that. You can focus on your changes only and ensure they're correct. |
Should I migrate to new PR to switch target branch to 2.6? Upd: found option to switch the base =) |
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.
Awesome 🎉
Thanks!
This is causing a regression in 2.6.5 and 2.7 for SQLite users: #7930 |
This needs to be reverted. It fixes the symptom and not the problem.
|
Fix in DBAL: doctrine/dbal#3762 |
But what about #7841? Adding true into SqlitePlatform could fix the regression without reverting that pr, right? Have we any platform with correct populating of Table#foreignKeys with emulated keys? |
@vpArth please see doctrine/dbal#3762 - it ads the missing support in SQLite platform when it gets merged. |
Add breaking test for #7841