summaryrefslogtreecommitdiff
path: root/db/post_migrate/20191017180026_drop_ci_build_trace_sections_id.rb
blob: 0405e23b465faec511c26a344f1aa2e963bf02f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class DropCiBuildTraceSectionsId < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def up
    ##
    # This column has already been ignored since 12.4
    # See https://gitlab.com/gitlab-org/gitlab/issues/32569
    remove_column :ci_build_trace_sections, :id
  end

  def down
    ##
    # We don't backfill serial ids as it's not used in application code
    # and quite expensive process.
    add_column :ci_build_trace_sections, :id, :bigint
  end
end