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
显示
- changelogs/unreleased/jc-add-seed-to-repository-storages-weighted.yml 5 个添加, 0 个删除...nreleased/jc-add-seed-to-repository-storages-weighted.yml
- db/migrate/20200508203901_add_repository_storages_weighted_to_application_settings.rb 26 个添加, 0 个删除...d_repository_storages_weighted_to_application_settings.rb
- db/post_migrate/20200526000407_seed_repository_storages_weighted.rb 8 个添加, 1 个删除...grate/20200526000407_seed_repository_storages_weighted.rb
- spec/migrations/add_repository_storages_weighted_to_application_settings_spec.rb 31 个添加, 0 个删除...ository_storages_weighted_to_application_settings_spec.rb
加载中
想要评论请 注册 或 登录