EspadaV8
"Correct" way to create a unique index with some raw SQL
I'm attempting to create a new unique index on a
username
column, but I want it to be unique on LOWER(username)
. I have the following, and it works, but I was wondering if there is an alternative way to do this without having it all as a raw query?
17 replies