FIX: change off to disabled for fast_typing_threshold setting (#31077)

Bug introduced in migration in this PR -
https://github.com/discourse/discourse/pull/30865/files#diff-ca17f6d1353d626d1664a3d55fcc7aed3c6e4587a0269cb264aa2c25c3264013R14

When the old setting was `0` then the value `for fast_typing_threshold`
should be `disabled` instead of `off`. Because of that mistake, new
users cannot create a topic when the `min_first_post_typing_time` value
was `0`.
This commit is contained in:
Krzysztof Kotlarek
2025-01-31 08:25:31 +11:00
committed by GitHub
parent 7e6107aad7
commit 33fe79be6a

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class FixIncorrectFastTypingThresholdSetting < ActiveRecord::Migration[7.2]
def change
execute "UPDATE site_settings SET value = 'disabled' WHERE name = 'fast_typing_threshold' AND value = 'off'"
end
end