Creating a Case-Insensitive Unique Index
I want to be able to select a user by their username but have usernames be case insensitive:
If I setup a users table like this:
It will create in an index definition:
Is there a way to create a lowercase index:
Or is there another way to achieve a lowercase equality check on a unique index?
If I setup a users table like this:
It will create in an index definition:
Is there a way to create a lowercase index:
Or is there another way to achieve a lowercase equality check on a unique index?