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

Migrate Email model to use surrogate primary key #8176

Open
1 task done
jennifer-richards opened this issue Nov 7, 2024 · 1 comment
Open
1 task done

Migrate Email model to use surrogate primary key #8176

jennifer-richards opened this issue Nov 7, 2024 · 1 comment
Labels
accepted enhancement New feature or request

Comments

@jennifer-richards
Copy link
Member

Description

The Email model currently uses its address field as a primary key. We should migrate this to use a numeric surrogate primary key instead. A database-level uniqueness constraint on the address field must continue to be enforced.

Code of Conduct

@jennifer-richards jennifer-richards added accepted enhancement New feature or request labels Nov 7, 2024
@jennifer-richards
Copy link
Member Author

fyi, the immediate motivation for this is to ease use of django-rest-framework, which does not handle @ characters in PKs out of the box

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

No branches or pull requests

1 participant