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

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

class SyncForeignKeyForCiPipelinesAutoCanceledByIdBigint < Gitlab::Database::Migration[2.1]
  TABLE_NAME = :ci_pipelines
  COLUMN_NAME = :auto_canceled_by_id_convert_to_bigint
  FK_NAME = :fk_67e4288f3a

  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