mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
Fix incorrect data type for SiteSetting.google_oauth2_prompt
.
This commit is contained in:
parent
ea1733ca64
commit
4ac5fc8cd3
@ -0,0 +1,16 @@
|
||||
class FixGoogleOauth2PromptDataType < ActiveRecord::Migration[5.1]
|
||||
def up
|
||||
sql = <<~SQL
|
||||
UPDATE site_settings
|
||||
SET data_type=#{SiteSettings::TypeSupervisor.types[:list]}
|
||||
WHERE data_type=#{SiteSettings::TypeSupervisor.types[:enum]}
|
||||
AND name='google_oauth2_prompt'
|
||||
SQL
|
||||
|
||||
execute sql
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user