diff options
author | Nick Thomas <nick@gitlab.com> | 2017-05-02 10:17:48 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-05-03 15:27:45 +0100 |
commit | 1a168dc7a587182dc6bd39f543198ada21f87437 (patch) | |
tree | ad6d36154bd5a7403e4a0e43e9bc6285198de6c5 /lib/tasks | |
parent | 6201f4c2b59748f14c4899af7077aee1cf751f04 (diff) | |
download | gitlab-ce-1a168dc7a587182dc6bd39f543198ada21f87437.tar.gz |
Fix caching large snippet HTML content on MySQL databases
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/db.rake | 1 | ||||
-rw-r--r-- | lib/tasks/migrate/add_limits_mysql.rake | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake index 5476438b8fa..139ab70e125 100644 --- a/lib/tasks/gitlab/db.rake +++ b/lib/tasks/gitlab/db.rake @@ -65,6 +65,7 @@ namespace :gitlab do migrations = `git diff #{ref}.. --diff-filter=A --name-only -- db/migrate`.lines .map { |file| Rails.root.join(file.strip).to_s } .select { |file| File.file?(file) } + .select { |file| /\A[0-9]+.*\.rb\z/ =~ File.basename(file) } Gitlab::DowntimeCheck.new.check_and_print(migrations) end diff --git a/lib/tasks/migrate/add_limits_mysql.rake b/lib/tasks/migrate/add_limits_mysql.rake index 6ded519aff2..761f275d42a 100644 --- a/lib/tasks/migrate/add_limits_mysql.rake +++ b/lib/tasks/migrate/add_limits_mysql.rake @@ -1,7 +1,9 @@ require Rails.root.join('db/migrate/limits_to_mysql') +require Rails.root.join('db/migrate/markdown_cache_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 + MarkdownCacheLimitsToMysql.new.up end |