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

20230717144744_drop_ci_stages_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: d32b871828161a1ea79394720a99bd8259b045fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

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

  TABLE_NAME = :ci_stages
  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