mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:53:45 +08:00
Refresh site settings after a remap
This commit is contained in:
parent
597330ad1d
commit
69c32a2651
|
@ -18,6 +18,8 @@ class DbHelper
|
||||||
column_name = rc["column_name"]
|
column_name = rc["column_name"]
|
||||||
connection.async_exec("UPDATE #{table_name} SET #{column_name} = REPLACE(#{column_name}, $1, $2) WHERE #{column_name} LIKE $3", args) rescue nil
|
connection.async_exec("UPDATE #{table_name} SET #{column_name} = REPLACE(#{column_name}, $1, $2) WHERE #{column_name} LIKE $3", args) rescue nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SiteSetting.refresh!
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user