Skip to content
代码片段 群组 项目
提交 6d8fc986 编辑于 作者: gdk's avatar gdk
浏览文件

Finalize migration BackfillDefaultBranchProtectionSettings

This migration was finished at `2024-05-27 16:08:03 UTC`, you can confirm
the status using our
[batched background migration chatops commands](https://docs.gitlab.com/ee/development/database/batched_background_migrations.html#monitor-the-progress-and-status-of-a-batched-background-migration).
  To confirm it is finished you can run:

  ```
/chatops run batched_background_migrations status 1000547
```

The last time this background migration was triggered was in [db/post_migrate/20240516160731_queue_backfill_default_branch_protection_settings.rb](https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/post_migrate/20240516160731_queue_backfill_default_branch_protection_settings.rb)

  You can read more about the process for finalizing batched background migrations in
https://docs.gitlab.com/ee/development/database/batched_background_migrations.html .

  As part of our process we want to ensure all batched background migrations have had at least one
[required stop](https://docs.gitlab.com/ee/development/database/required_stops.html)
to process the migration. Therefore we can finalize any batched background migration that was added before the
last required stop.

This change was generated by
[gitlab-housekeeper](https://gitlab.com/gitlab-org/gitlab/-/tree/master/gems/gitlab-housekeeper)
using the Keeps::OverdueFinalizeBackgroundMigration keep.

To provide feedback on your experience with `gitlab-housekeeper` please create an issue with the
label ~"GitLab Housekeeper" and consider pinging the author of this keep.

Changelog: other
上级 d27a01d1
No related branches found
No related tags found
无相关合并请求
--- ---
migration_job_name: BackfillDefaultBranchProtectionSettings migration_job_name: BackfillDefaultBranchProtectionSettings
description: This migration backfills column default_branch_protection_defaults of namespace settings table description: This migration backfills column default_branch_protection_defaults of
namespace settings table
feature_category: source_code_management feature_category: source_code_management
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/153306 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/153306
milestone: '17.1' milestone: '17.1'
queued_migration_version: 20240516160731 queued_migration_version: 20240516160731
finalized_by: # version of the migration that finalized this BBM finalized_by: '20241103232348'
# frozen_string_literal: true
class FinalizeBackfillDefaultBranchProtectionSettings < Gitlab::Database::Migration[2.2]
milestone '17.6'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillDefaultBranchProtectionSettings',
table_name: :namespaces,
column_name: :id,
job_arguments: [],
finalize: true
)
end
def down; end
end
c0fc454b6b019729923b587cd6ababe16f7c43c6efc9771e39c986962cd2a65e
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册