I am creating a index on 2 columns (that can be found in Django-index together
index_together = [["name", "value"]]
but I also want it to be case insensitive, because one of my filters will use iexact
. Any idea how this can be achieved?
I am using latest version of Django with DRF.
I am basically just looking to add a index on those 2 columns that is case insensitive. Don't mind doing a raw SQL query in migration as well if no other way is possible, so raw SQL is also helpful. Just want to make sure that there isn't a native way of doing this