blob: 6e8d423e679c85f859d060c1307aacac57c43116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class SetMaxRunningBatchedBackgroundMigrationsForGitlabCom < Gitlab::Database::Migration[2.1]
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
return unless Gitlab.com? && !Gitlab.jh?
execute 'UPDATE application_settings SET database_max_running_batched_background_migrations = 4'
end
def down
return unless Gitlab.com? && !Gitlab.jh?
execute 'UPDATE application_settings SET database_max_running_batched_background_migrations = 2'
end
end
|