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

prometheus_metrics_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: f7a2fcba8c2021dac2b622c61f5bc5be71aa9966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class PrometheusMetricsLimitsToMysql < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def up
    return unless Gitlab::Database.mysql?

    change_column :prometheus_metrics, :query, :text, limit: 4096, default: nil
  end

  def down
  end
end