mirror of
https://github.com/discourse/discourse.git
synced 2025-02-03 03:53:58 +08:00
DEV: resolve on conflict (#25848)
This commit is contained in:
parent
e049f82681
commit
ba8555df86
|
@ -12,7 +12,8 @@ class FillEmbeddedMediaPostAllowedGroupsBasedOnDeprecatedSetting < ActiveRecord:
|
||||||
|
|
||||||
DB.exec(
|
DB.exec(
|
||||||
"INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
|
"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,
|
setting: allowed_groups,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user