Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 546a102b4e60c882119039d1c97810615e5d65cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class UpdateCiMaxTotalYamlSizeBytesDefaultValue < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  def up
    execute <<~SQL
    UPDATE application_settings
    SET ci_max_total_yaml_size_bytes = max_yaml_size_bytes * ci_max_includes
    SQL
  end

  def down
    # No-op
  end
end