Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20240122133127_finalize_backfill_partition_id_ci_pipeline_artifact.rb')
-rw-r--r--db/post_migrate/20240122133127_finalize_backfill_partition_id_ci_pipeline_artifact.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/db/post_migrate/20240122133127_finalize_backfill_partition_id_ci_pipeline_artifact.rb b/db/post_migrate/20240122133127_finalize_backfill_partition_id_ci_pipeline_artifact.rb
new file mode 100644
index 00000000000..e7762c495c9
--- /dev/null
+++ b/db/post_migrate/20240122133127_finalize_backfill_partition_id_ci_pipeline_artifact.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+class FinalizeBackfillPartitionIdCiPipelineArtifact < Gitlab::Database::Migration[2.2]
+ milestone '16.9'
+ MIGRATION = 'BackfillPartitionIdCiPipelineArtifact'
+ disable_ddl_transaction!
+ restrict_gitlab_migration gitlab_schema: :gitlab_ci
+
+ def up
+ ensure_batched_background_migration_is_finished(
+ job_class_name: MIGRATION,
+ table_name: :ci_pipeline_artifacts,
+ column_name: :id,
+ job_arguments: [],
+ finalize: true
+ )
+ end
+
+ def down
+ # no-op
+ end
+end