diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-15 18:26:15 +0400 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-23 13:07:36 +0400 |
commit | 43e77099d86960401013a45f56e29bfb83368d2c (patch) | |
tree | 66d93910c92b2019c7b49cf74139e8f14feb42ec /lib | |
parent | 7fab63b41f1a28cc5efa6b9afef30170e41c94ea (diff) |
Adjust MySQL limits for existing installations
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate/add_limits_mysql.rake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/tasks/migrate/add_limits_mysql.rake b/lib/tasks/migrate/add_limits_mysql.rake index 46b6451752b..a1972a682d8 100644 --- a/lib/tasks/migrate/add_limits_mysql.rake +++ b/lib/tasks/migrate/add_limits_mysql.rake @@ -1,14 +1,7 @@ +require Rails.root.join('db/migrate/limits_to_mysql') + 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 - change_column :notes, :st_diff, :text, limit: 2147483647 - end -end |