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

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

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

  TABLE = :ci_pipeline_variables
  COLUMNS = [:id]

  def up
    cleanup_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end

  def down
    restore_conversion_of_integer_to_bigint(TABLE, COLUMNS)
  end
end