Skip to content

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

Stan Hu requested to merge stanhu/gitlab-ce:fix-mysql-ci-limits-migration into master

If you attempted to migrate the current DB schema from a certain point with MySQL, you might see something like:

Mysql2::Error: Table 'gitlabhq_development.ci_commits' doesn't exist: SHOW FULL FIELDS FROM `ci_commits`/home/niranjana/.rvm/gems/ruby-2.2.1/gems/rack-mini-profiler-0.9.7/lib/patches/db/mysql2.rb:20:in `query'

limits_to_mysql.rb is used in the 20140415124820 migration, but the column is added in 20150826001931. This migration moves the limits changes to a later point.

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

Merge request reports