Update existing migration to prevent broken master
What does this MR do and why?
Updates and existing migration to prevent broken master.
EDIT: master is currently broken because of this: gitlab-org/quality/engineering-productivity/master-broken-incidents#8171 (closed)
See similar broken incident a couple days ago and the corresponding MR with the same fix: !164238 (merged)
Edited by Olivier Gonzalez