Commit cc57a25c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6510 from jvanbaarsen/rake-task-for-limits

Added rake task to add limits back in mysql
parents 55fbe71a f9c4bb56
desc "GITLAB | Add limits to strings in mysql database"
task add_limits_mysql: :environment do
puts "Adding limits to schema.rb for mysql"
LimitsToMysql.new.up
end
class LimitsToMysql < ActiveRecord::Migration
def up
change_column :merge_request_diffs, :st_commits, :text, limit: 2147483647
change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647
change_column :snippets, :content, :text, limit: 2147483647
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment