mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06: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
|
SELECT 1
|
||||||
FROM site_settings
|
FROM site_settings
|
||||||
WHERE name = 'lounge_welcome_topic_id'
|
WHERE name = 'lounge_welcome_topic_id'
|
||||||
) AND category_id = (
|
) AND category_id IN (
|
||||||
SELECT value::INT
|
SELECT value::INT
|
||||||
FROM site_settings
|
FROM site_settings
|
||||||
WHERE name = 'lounge_category_id'
|
WHERE name = 'lounge_category_id'
|
||||||
|
Loading…
Reference in New Issue
Block a user