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

limits_ci_build_trace_chunks_raw_data_for_mysql.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1771912c3cd0821700f95178dd2df18ab84ba76 (plain)
1
2
3
4
5
6
7
8
9
class LimitsCiBuildTraceChunksRawDataForMysql < ActiveRecord::Migration
  def up
    return unless Gitlab::Database.mysql?

    # Mysql needs MEDIUMTEXT type (up to 16MB) rather than TEXT (up to 64KB)
    # Because 'raw_data' is always capped by Ci::BuildTraceChunk::CHUNK_SIZE, which is 128KB
    change_column :ci_build_trace_chunks, :raw_data, :binary, limit: 16.megabytes - 1 #MEDIUMTEXT
  end
end