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

merge_request_diff_file_limits_to_mysql.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65dd0b5b7f7579b29ce1a5df843ccd6ff84d6c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class MergeRequestDiffFileLimitsToMysql < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def up
    return unless Gitlab::Database.mysql?

    change_column :merge_request_diff_files, :diff, :text, limit: 2147483647, default: nil
  end

  def down
  end
end