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

Make uuid encoding configurable and consistent #52

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

LostKobrakai
Copy link
Contributor

This makes the UUID handling configurable and also consistent.

It seems by now :binary_id fields were not encoded (string uuid stored), while Ecto.UUID fields were actually stored encoded to the binary form.

I've opted to leave the :string form the default, though it's still a breaking change given the two types were not consistent before.

Closes #51

lib/ecto/adapters/sqlite3/data_type.ex Show resolved Hide resolved
lib/ecto/adapters/sqlite3.ex Show resolved Hide resolved
@kevinlang
Copy link
Member

LGTM

@kevinlang
Copy link
Member

I'll merge this and issue a new release later today

@warmwaffles
Copy link
Member

One slight change, can you add a line to the CHANGELOG?

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.

Handling of UUIDs
3 participants