-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
schemadiff: identify a FK sequential execution scenario, and more #14397
schemadiff: identify a FK sequential execution scenario, and more #14397
Conversation
…an index over foreign key parent referenced columns Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
… TABLE ... ADD FOREIGN KEY does, and the dependency resolving logic applies to both in the same way Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
All right, in the couple hours since opening this PR I've found a whole new family of FK-related dependencies. Basically, any |
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.
✨
Description
In this PR we programmatically identify the following scenario:
In this scenario, the two changes are strictly sequential, and the two migrations will never be able to run concurrently.
UPDATE: we've identified new scenarios, added in this PR. See followup comments.
Related Issue(s)
Checklist
Deployment Notes