diff options
author | Stan Hu <stanhu@gmail.com> | 2015-10-20 21:23:33 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-21 10:11:06 +0300 |
commit | e39fdc1ddd85857d96c0da2e420e66bc67bd7c8c (patch) | |
tree | 633a137a8e23ec013050180be68187723126c3f7 /db/migrate/20151020173516_ci_limits_to_mysql.rb | |
parent | 6f5a844edce21cfad7bfa6d00f1424894ecf6a05 (diff) |
Ensure MySQL CI limits DB migrations occur after the fields have been created
Closes https://github.com/gitlabhq/gitlabhq/issues/9753
Diffstat (limited to 'db/migrate/20151020173516_ci_limits_to_mysql.rb')
-rw-r--r-- | db/migrate/20151020173516_ci_limits_to_mysql.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151020173516_ci_limits_to_mysql.rb b/db/migrate/20151020173516_ci_limits_to_mysql.rb new file mode 100644 index 00000000000..9bb960082f5 --- /dev/null +++ b/db/migrate/20151020173516_ci_limits_to_mysql.rb @@ -0,0 +1,9 @@ +class CiLimitsToMysql < ActiveRecord::Migration + def change + return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/ + + # CI + change_column :ci_builds, :trace, :text, limit: 1073741823 + change_column :ci_commits, :push_data, :text, limit: 16777215 + end +end |