-
Notifications
You must be signed in to change notification settings - Fork 78
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
Allow Ecto.UUID PKs #129
Allow Ecto.UUID PKs #129
Conversation
Thank you for opening the PR. Can you explain why you think this is required? In other words, why do you need a UUID PK in the FWF table? |
Hi @tompave Great question! So, the reason I need UUID-based PKs is due to the way our production environment is set up. Int based pk/fk are a no-go |
I see, that makes sense, but I'm not sure this is the right way to go about it. I'd be happy to accept a PR to fix the problem described in that issue, and then a second PR to add this new functionality using the correct compile-time config approach. |
Yeah, I'm not sure that's the correct approach. It would be better to name and document what is explicitly compile-time and run-time, as I've run into issues configuring FWF between ct I'm happy to help document the potential gotchas if need be |
Which one? The one in your PR, or what's discussed in that issue?
Yes, I don't think the suggestion in the opening message of that issue is the right one. I'm suggesting a different approach in my replies.
There were some gotchas, but they (or most of them) have been solved with the adoption of |
Ahh, yes I see that. My apologies |
With regard to my message above (#129 (comment)), that has now been fixed with #130. If you still want to update this PR you can adopt that pattern. |
Closing because of inactivity. |
Adds a compile-time config of
:ecto_primary_key_type
allowing use optional use ofEcto.UUID