Skip to content
代码片段 群组 项目
未验证 提交 6717cbce 编辑于 作者: Brian Williams's avatar Brian Williams
浏览文件

Convert 20241022181600 to a schema migration

This migration caused the BBM to begin erroring on .com because
application code is updated _before_ post-deployment migrations run. For
.com the issue was addressed by pausing the migration until the
post-deployment migrations were able to run an delete it. This change
converts the migration to a schema migration so that the same issue does
not happen during self-managed upgrades.

Changelog: fixed
上级 82906532
No related branches found
No related tags found
无相关合并请求
......@@ -7,6 +7,8 @@ class RemoveBackfillVulnerabilityOccurrencePipelinesProjectId < Gitlab::Database
MIGRATION = "BackfillVulnerabilityOccurrencePipelinesProjectId"
def up
# rubocop:disable Migration/BatchMigrationsPostOnly -- Must be run before BBM code is deleted.
# Estimated runtime on .com is only 5 seconds.
delete_batched_background_migration(
MIGRATION,
:vulnerability_occurrence_pipelines,
......@@ -18,6 +20,7 @@ def up
:occurrence_id
]
)
# rubocop:enable Migration/BatchMigrationsPostOnly
end
def down
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册