diff options
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.rb | 18 |
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 |