We have a UNIQUE
constraint on a table to prevent our city_name
and state_id
combinations from being duplicated. The problem we have found is that accents circumvent this.
Example:
"Montréal" "Quebec"
and
"Montreal" "Quebec"
We need a way to have the unique constraint run UNACCENT()
and preferably wrap it in LOWER()
as well for good measure. Is this possible?