-
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
DDL strategy flag --unsafe-allow-foreign-keys
implies setting FOREIGN_KEY_CHECKS=0
#15432
DDL strategy flag --unsafe-allow-foreign-keys
implies setting FOREIGN_KEY_CHECKS=0
#15432
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
…IGN_KEY_CHECKS=0' in both direct and Online DDL strategies Signed-off-by: Shlomi Noach <[email protected]>
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
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15432 +/- ##
=======================================
Coverage 65.72% 65.73%
=======================================
Files 1563 1562 -1
Lines 194027 193975 -52
=======================================
- Hits 127529 127501 -28
+ Misses 66498 66474 -24 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shlomi Noach <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
Hello! 👋 This Pull Request is now handled by arewefastyet. The current HEAD and future commits will be benchmarked. You can find the performance comparison on the arewefastyet website. |
Description
Applying in both
direct
as well as online strategies, adding--unsafe-allow-foreign-keys
DDL strategy flag implies aSET FOREIGN_KEY_CHECKS=0
before executing the SQL.With this, the user is allowed to create cyclic foreign key relationship, as in:
Note: this changes existing behavior. However, since existing behavior is experimental, as clearly indicated by
--unsafe-
prefix, we are good to make that change.Related Issue(s)
Addresses #15430
Checklist
Deployment Notes