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

[NFR] add option for disable and enable foreigh key #11

Closed
olegatro opened this issue Oct 28, 2019 · 4 comments · Fixed by #75
Closed

[NFR] add option for disable and enable foreigh key #11

olegatro opened this issue Oct 28, 2019 · 4 comments · Fixed by #75
Assignees
Labels
NFR New Feature Request
Milestone

Comments

@olegatro
Copy link

olegatro commented Oct 28, 2019

When we migrating some tables, we don't control order of this tables.
And if we have foreign keys of that tables, we have errors.

So we should have some mechanic to disable and enable foreign key checks.

SET FOREIGN_KEY_CHECKS=0;

CREATE TABLE ...

SET FOREIGN_KEY_CHECKS=1;
@Jeckerson Jeckerson added the NFR New Feature Request label Nov 12, 2019
@Jeckerson Jeckerson added this to the 1.1 milestone Nov 24, 2019
@Jeckerson Jeckerson self-assigned this Jan 28, 2020
@Jeckerson Jeckerson modified the milestones: 1.1.x, 1.2.x Feb 2, 2020
@Jeckerson
Copy link
Member

Related #6

@Jeckerson
Copy link
Member

Related #20

@Jeckerson Jeckerson modified the milestones: 1.2.x, 2.0.x Feb 23, 2020
@Jeckerson Jeckerson modified the milestones: 2.0.x, 2.1.x Mar 19, 2020
@Jeckerson
Copy link
Member

@olegatro Could you provide some examples by updating your original post?

@olegatro
Copy link
Author

Updated

Jeckerson added a commit that referenced this issue Mar 22, 2020
@Jeckerson Jeckerson linked a pull request Mar 22, 2020 that will close this issue
Jeckerson added a commit that referenced this issue Mar 22, 2020
Jeckerson added a commit that referenced this issue Mar 22, 2020
Jeckerson added a commit that referenced this issue Mar 22, 2020
…hecks

#11 - Added new option to skip foreign checks
@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NFR New Feature Request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants