Skip to content
Snippets Groups Projects
Commit 35618a3d authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'fix-mysql-ci-limits-migration' into 'master'

Ensure MySQL CI limits DB migrations occur after the fields have been created

Closes https://github.com/gitlabhq/gitlabhq/issues/9753

See merge request !1653
parents 9769a870 e39fdc1d
No related branches found
No related tags found
No related merge requests found
Pipeline #
Please view this file on the master branch, on stable branches it's out of date. Please view this file on the master branch, on stable branches it's out of date.
   
v 8.2.0 (unreleased) v 8.2.0 (unreleased)
- Ensure MySQL CI limits DB migrations occur after the fields have been created (Stan Hu)
- Improved performance of replacing references in comments - Improved performance of replacing references in comments
- Fix duplicate repositories in GitHub import page (Stan Hu) - Fix duplicate repositories in GitHub import page (Stan Hu)
- Redirect to a default path if HTTP_REFERER is not set (Stan Hu) - Redirect to a default path if HTTP_REFERER is not set (Stan Hu)
Loading
Loading
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
Loading
@@ -6,9 +6,5 @@ class LimitsToMysql < ActiveRecord::Migration
Loading
@@ -6,9 +6,5 @@ class LimitsToMysql < ActiveRecord::Migration
change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647 change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647
change_column :snippets, :content, :text, limit: 2147483647 change_column :snippets, :content, :text, limit: 2147483647
change_column :notes, :st_diff, :text, limit: 2147483647 change_column :notes, :st_diff, :text, limit: 2147483647
# CI
change_column :ci_builds, :trace, :text, limit: 1073741823
change_column :ci_commits, :push_data, :text, limit: 16777215
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment