Readd index_on_users_name_lower if necessary

What does this MR do and why?

This index was added in GitLab 10.5 with gitlab-foss!17158 (merged), but it was gated on a Gitlab::Database.postgresql? check. We've seen some older installations missing this index. Re-add it if is missing.

References

Relates to https://gitlab.com/gitlab-com/request-for-help/-/issues/3342

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports

Loading