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

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

class CleanupBigintConversionForCiBuilds < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  TABLE = :ci_builds
  COLUMNS = [:id, :stage_id]

  def up
    cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end