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

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

class AsyncValidateForeignKeyForCiStagesPipelineIdBigint < Gitlab::Database::Migration[2.1]
  TABLE_NAME = :ci_stages
  COLUMN_NAME = :pipeline_id_convert_to_bigint
  FK_NAME = :fk_c5ddde695f

  def up
    prepare_async_foreign_key_validation TABLE_NAME, COLUMN_NAME, name: FK_NAME
  end

  def down
    unprepare_async_foreign_key_validation TABLE_NAME, COLUMN_NAME, name: FK_NAME
  end
end