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

Username case insensitive lookup #117

Open
prawnsalad opened this issue Feb 28, 2021 · 0 comments
Open

Username case insensitive lookup #117

prawnsalad opened this issue Feb 28, 2021 · 0 comments
Assignees

Comments

@prawnsalad
Copy link
Member

Currently all username lookups are case sensitive. We need to:

  • Lowercase all usernames during lookups
  • Lowercase all usernames on inserts
  • Add a database migration that:
    1. For each duplicate username:
      1. Move all related networks user_id to the first user row
      2. Move all other table user_id columns to references to the first user row
      3. Delete all duplicate user rows other than the first

Simply using ilike or SQLites no casing options won't work as each option is different between each database that we support.

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

No branches or pull requests

2 participants