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

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

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

  TABLE = :ci_project_monthly_usages
  COLUMNS = [:shared_runners_duration]

  def up
    cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end