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

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

class RevertBackfillCiBuildTraceSectionsForBigintConversion < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  TABLE = :ci_build_trace_sections
  COLUMN = :build_id

  def up
    revert_backfill_conversion_of_integer_to_bigint TABLE, COLUMN, primary_key: COLUMN
  end

  def down
    # no-op
  end
end