Skip to content
代码片段 群组 项目
未验证 提交 60a9bec9 编辑于 作者: Michał Zając's avatar Michał Zając
浏览文件

Schedule asynchronous index creation to support finding_id backfill

Changelog: added
上级 a265ea9e
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class AsyncCreateSupportingIndexForFindingIdBackfill < Gitlab::Database::Migration[2.2]
milestone '16.7'
INDEX_NAME = "tmp_index_vulnerabilities_on_id_finding_id_empty"
# TODO: Index to be created synchronously in https://gitlab.com/gitlab-org/gitlab/-/issues/433253
def up
prepare_async_index(
:vulnerabilities,
:id,
where: "finding_id IS NULL",
name: INDEX_NAME
)
end
def down
unprepare_async_index(
:vulnerabilities,
:id,
name: INDEX_NAME
)
end
end
2269867e97f1194f376979f964912f386aa5248966601a46e27ebb1b72d9e96a
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册