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

Improve EnableAutomaticForeignKeys handling #19

Closed
carl-berg opened this issue Mar 10, 2021 · 0 comments · Fixed by #21
Closed

Improve EnableAutomaticForeignKeys handling #19

carl-berg opened this issue Mar 10, 2021 · 0 comments · Fixed by #21
Labels
enhancement New feature or request

Comments

@carl-berg
Copy link
Owner

carl-berg commented Mar 10, 2021

Currently the call to EnableAutomaticForeignKeys should only happen once, but there could be cases where you would want to override previous configured settings. For instance, you might want AddMissingForeignKeys turned on by default, but you might want to configure DependencyTraversalStrategy on a case-by-case basis. I think i would like the idea to defer the handling until just before execution so you can re-configure the strategy up until then.

An idea could be to just store the settings in the context when the call to EnableAutomaticForeignKeys is made, so that multiple calls safely can be made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant