prometheus_metrics_limits_to_mysql.rb 248 Bytes
Newer Older
1
class PrometheusMetricsLimitsToMysql < ActiveRecord::Migration[4.2]
Kamil Trzciński's avatar
Kamil Trzciński committed
2 3 4 5 6 7 8 9 10 11 12
  DOWNTIME = false

  def up
    return unless Gitlab::Database.mysql?

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

  def down
  end
end