FIX: Make migration resilient against duplicate site settings

This commit is contained in:
Gerhard Schlager 2019-03-25 16:57:23 +01:00
parent 60e6070c27
commit 467c17da53

View File

@ -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'