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

20230908065605_validate_foreign_key_for_ci_pipeline_messages_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: b1951942fedf5665221d52a63b48843504162d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ValidateForeignKeyForCiPipelineMessagesPipelineIdBigint < Gitlab::Database::Migration[2.1]
  TABLE_NAME = :ci_pipeline_messages
  COLUMN_NAME = :pipeline_id_convert_to_bigint
  FK_NAME = :fk_0946fea681

  def up
    validate_foreign_key TABLE_NAME, COLUMN_NAME, name: FK_NAME
  end

  def down
    # Can be safely a no-op if we don't roll back the inconsistent data.
  end
end