mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 21:33:40 +08:00
FIX: Make migration resilient against duplicate site settings
This commit is contained in:
parent
60e6070c27
commit
467c17da53
|
@ -27,7 +27,7 @@ class AddMissingTopicIdSiteSettings < ActiveRecord::Migration[5.2]
|
|||
SELECT 1
|
||||
FROM site_settings
|
||||
WHERE name = 'lounge_welcome_topic_id'
|
||||
) AND category_id = (
|
||||
) AND category_id IN (
|
||||
SELECT value::INT
|
||||
FROM site_settings
|
||||
WHERE name = 'lounge_category_id'
|
||||
|
|
Loading…
Reference in New Issue
Block a user