Skip to content
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

Disable foreign key checks when cleaning tables #3

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

itkrt2y
Copy link
Contributor

@itkrt2y itkrt2y commented Apr 29, 2024

Summary

To prevent foreign key constraint errors when executing DELETE on parent tables where child tables have foreign keys referencing them, we temporarily disable FOREIGN_KEY_CHECKS.

Other Information

Checklist

@itkrt2y itkrt2y changed the title Ignore foreign key checks when cleaning tables Disable foreign key checks when cleaning tables Apr 29, 2024
Copy link
Contributor

@genya0407 genya0407 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎸

@genya0407 genya0407 merged commit 7fea6cf into DeNA:trunk Apr 29, 2024
6 checks passed
@genya0407
Copy link
Contributor

Released v0.1.1

@itkrt2y itkrt2y deleted the foreign-key branch April 29, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants