Skip to content
代码片段 群组 项目
提交 d838c0b2 编辑于 作者: John Cai's avatar John Cai 提交者: Stan Hu
浏览文件

Fix existing migrations for repository_storages_weighted column

For instances that upgraded to GitLab 13.1.x, it's likely that the
`application_settings.repository_storages_weighted` column did not
properly update. This happened because the schema for
`ApplicationSetting` may have been cached, so the newly-added column
wasn't visible to the model.

To ensure the column always has the right data, we make the
pre-deployment migration fill in the right data and flush the
cache. This essentially does the same thing as the post-deployment
migration, but it ensures that the application can properly run before
post-deployment migrations have completed.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/225588
上级 e982a73d
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册