debian-mirror-gitlab/lib/tasks/migrate/add_limits_mysql.rake

18 lines
802 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
require Rails.root.join('db/migrate/limits_to_mysql')
2017-08-17 22:00:37 +05:30
require Rails.root.join('db/migrate/markdown_cache_limits_to_mysql')
2017-09-10 17:25:29 +05:30
require Rails.root.join('db/migrate/merge_request_diff_file_limits_to_mysql')
2018-10-15 14:42:47 +05:30
require Rails.root.join('db/migrate/limits_ci_build_trace_chunks_raw_data_for_mysql')
2018-11-08 19:23:39 +05:30
require Rails.root.join('db/migrate/gpg_keys_limits_to_mysql')
2018-11-20 20:47:30 +05:30
require Rails.root.join('db/migrate/prometheus_metrics_limits_to_mysql')
2014-09-02 18:07:02 +05:30
2015-09-11 14:41:01 +05:30
desc "GitLab | Add limits to strings in mysql database"
2014-09-02 18:07:02 +05:30
task add_limits_mysql: :environment do
puts "Adding limits to schema.rb for mysql"
LimitsToMysql.new.up
2017-08-17 22:00:37 +05:30
MarkdownCacheLimitsToMysql.new.up
2017-09-10 17:25:29 +05:30
MergeRequestDiffFileLimitsToMysql.new.up
2018-10-15 14:42:47 +05:30
LimitsCiBuildTraceChunksRawDataForMysql.new.up
2018-11-08 19:23:39 +05:30
IncreaseMysqlTextLimitForGpgKeys.new.up
2018-11-20 20:47:30 +05:30
PrometheusMetricsLimitsToMysql.new.up
2014-09-02 18:07:02 +05:30
end