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

Foreign keys failure #4

Open
pokmot opened this issue Feb 24, 2021 · 0 comments
Open

Foreign keys failure #4

pokmot opened this issue Feb 24, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@pokmot
Copy link

pokmot commented Feb 24, 2021

I had foreign keys:

CONSTRAINT mailcoach_campaign_clicks_campaign_link_id_foreign FOREIGN KEY (campaign_link_id) REFERENCES mailcoach_campaign_links

The fix is to insert
SET FOREIGN_KEY_CHECKS=0;
at the beginning and
SET FOREIGN_KEY_CHECKS=1;
at the end of the SQL file.

@pokmot pokmot changed the title Foriegn keys failure Foreign keys failure Feb 24, 2021
@mechelon mechelon added the good first issue Good for newcomers label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants