You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works because it will concatenate into this: "index:incident_idx1,priority:3;index:incident_idx2,priorty:3;", which is what we want.
But this is ugly hack that is not documented, and a allowing index to be repeated field should solve this problem (and likely not break any existing users).
The text was updated successfully, but these errors were encountered:
gorm supports repeating
index
to create multiple indexes involving same column.https://gorm.io/docs/indexes.html#Multiple-indexes
It looks like this can be somehow worked around by doing this:
This works because it will concatenate into this:
"index:incident_idx1,priority:3;index:incident_idx2,priorty:3;"
, which is what we want.But this is ugly hack that is not documented, and a allowing index to be repeated field should solve this problem (and likely not break any existing users).
The text was updated successfully, but these errors were encountered: