Add latest changes from gitlab-org/gitlab@16-3-stable-ee
This commit is contained in:
parent
022f9b6b0c
commit
b93d3501fd
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue