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

826: Modify index on email to be lowercased #833

Merged

Conversation

sarahsporck
Copy link
Contributor

Expression indices are not yet supported in exposed therefore the manual creation. If you have any idea where to create the index or whether there might be a better solution let me no.

@sarahsporck sarahsporck linked an issue Mar 2, 2023 that may be closed by this pull request
@sarahsporck sarahsporck force-pushed the 826-emails-should-not-be-case-sensitive-when-logging-in branch from 43eb3c0 to 4680b31 Compare March 2, 2023 15:17

object Administrators : IntIdTable() {
val email = varchar("email", 100).uniqueIndex()
val email = varchar("email", 100)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.... In the optimal scenario, we would probably also remove the index that was previously created?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also according to stackoverflow we should up our limit from 100 to at least 254... (a different task for sure)
I feel like we are slowly getting into migrations territory :D ... We should probably think about some proper way to do DB migrations in general in the future...

@sarahsporck sarahsporck merged commit 75dce99 into main Mar 6, 2023
@sarahsporck sarahsporck deleted the 826-emails-should-not-be-case-sensitive-when-logging-in branch March 6, 2023 12:24
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.

Emails should not be case sensitive when logging in
2 participants