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

20230717144729_drop_ci_job_artifacts_partition_id_default_v2.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3b2cd324fb8be6eaeb476ff72f91da5863b5b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class DropCiJobArtifactsPartitionIdDefaultV2 < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  TABLE_NAME = :ci_job_artifacts
  COLUMN_NAME = :partition_id

  def up
    remove_column_default(TABLE_NAME, COLUMN_NAME)
  end

  def down
    change_column_default(TABLE_NAME, COLUMN_NAME, from: nil, to: 100)
  end
end