debian-mirror-gitlab/db/migrate/20220607095219_drop_ci_pipelines_config_pipeline_id_sequence.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
359 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# 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