diff options
Diffstat (limited to 'db/post_migrate/20231213080216_finalize_merge_request_diffs_project_id_backfill.rb')
-rw-r--r-- | db/post_migrate/20231213080216_finalize_merge_request_diffs_project_id_backfill.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/post_migrate/20231213080216_finalize_merge_request_diffs_project_id_backfill.rb b/db/post_migrate/20231213080216_finalize_merge_request_diffs_project_id_backfill.rb new file mode 100644 index 00000000000..cb83b00b2a2 --- /dev/null +++ b/db/post_migrate/20231213080216_finalize_merge_request_diffs_project_id_backfill.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class FinalizeMergeRequestDiffsProjectIdBackfill < Gitlab::Database::Migration[2.2] + milestone '16.8' + + disable_ddl_transaction! + + restrict_gitlab_migration gitlab_schema: :gitlab_main + + def up + ensure_batched_background_migration_is_finished( + job_class_name: 'BackfillMergeRequestDiffsProjectId', + table_name: :merge_request_diffs, + column_name: :id, + job_arguments: [], + finalize: true + ) + end + + def down; end +end |