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

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

class DropCiPipelinesConfigPipelineIdSequence < Gitlab::Database::Migration[2.0]
  enable_lock_retries!

  def up
    drop_sequence(:ci_pipelines_config, :pipeline_id, :ci_pipelines_config_pipeline_id_seq)
  end

  def down
    add_sequence(:ci_pipelines_config, :pipeline_id, :ci_pipelines_config_pipeline_id_seq, 1)
  end
end