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

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

class SyncForeignKeyForCiSourcesPipelinesSourcePipelineIdBigint < Gitlab::Database::Migration[2.1]
  TABLE_NAME = :ci_sources_pipelines
  COLUMN_NAME = :source_pipeline_id_convert_to_bigint
  FK_NAME = :fk_1df371767f

  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