Utilize expression index for auth #9973
Labels
enhancement
Adding or requesting a new feature.
good first issue
Opportunity for newcoming contributors.
hacktoberfest
This is suitable for Hacktoberfest. Don’t try to spam.
help wanted
Extra attention is needed.
Milestone
Describe the problem
Weblate does manually create index using
CREATE UNIQUE INDEX
during theweblate.auth
model migration.Describe the solution you'd like
This should be changed to use Django standard expression index
UniqueConstraint(...Upper(...))
instead for better readability and portability.Describe alternatives you've considered
No response
Screenshots
No response
Additional context
Need Django 4.0+ (Weblate already requires 4.2).
See also https://stackoverflow.com/a/69752763/225718 and https://stackoverflow.com/a/66966391/225718
The text was updated successfully, but these errors were encountered: