Add latest changes from gitlab-org/gitlab@16-3-stable-ee

This commit is contained in:
GitLab Bot 2023-09-07 19:43:43 +00:00
parent 022f9b6b0c
commit b93d3501fd
1 changed files with 5 additions and 2 deletions

View File

@ -6,9 +6,12 @@ class UpdateCiMaxTotalYamlSizeBytesDefaultValue < Gitlab::Database::Migration[2.
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
# 2147483647 is the max int value.
execute <<~SQL
UPDATE application_settings
SET ci_max_total_yaml_size_bytes = max_yaml_size_bytes * ci_max_includes
UPDATE application_settings
SET ci_max_total_yaml_size_bytes =
CASE WHEN max_yaml_size_bytes * ci_max_includes >= 2147483647
THEN 2147483647 ELSE max_yaml_size_bytes * ci_max_includes END
SQL
end