Commit 86cb9284 authored by Nick Thomas's avatar Nick Thomas

Fix default values for the deprecated API throttle

The AddThrottleDeprecatedApiColumns migration does not currently match
the db/structure.sql file, which was missed in final review. Add a new
migration to ensure that the default values via migration match those
in db/structure.sql

Changelog: fixed
parent 47132616
# frozen_string_literal: true
class FixDeprecatedApiThrottleDefaults < Gitlab::Database::Migration[1.0]
def change
change_column_default :application_settings, :throttle_unauthenticated_deprecated_api_requests_per_period, from: 3600, to: 1800
change_column_default :application_settings, :throttle_authenticated_deprecated_api_period_in_seconds, from: 1800, to: 3600
end
end
4b2c1b8e80f481d2dbbcfcb61c0a3d3081cbe4081fdd710040a028d72bd5d0e4
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment