mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
DEV: resolve on conflict (#25847)
This commit is contained in:
parent
b5d4e06de7
commit
e440996aca
|
@ -12,7 +12,8 @@ class FillEmbeddedMediaPostAllowedGroupsBasedOnDeprecatedSetting < ActiveRecord:
|
|||
|
||||
DB.exec(
|
||||
"INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
|
||||
VALUES('embedded_media_post_allowed_groups', :setting, '20', NOW(), NOW())",
|
||||
VALUES('embedded_media_post_allowed_groups', :setting, '20', NOW(), NOW())
|
||||
ON CONFLICT (name) DO NOTHING",
|
||||
setting: allowed_groups,
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user