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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb')
-rw-r--r--db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb b/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb
new file mode 100644
index 00000000000..546a102b4e6
--- /dev/null
+++ b/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb
@@ -0,0 +1,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