summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs')
-rw-r--r--priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs b/priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs
index b717cab2e..a3c5b52de 100644
--- a/priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs
+++ b/priv/repo/migrations/20190711042024_copy_muted_to_muted_notifications.exs
@@ -3,6 +3,6 @@ defmodule Pleroma.Repo.Migrations.CopyMutedToMutedNotifications do
alias Pleroma.User
def change do
- execute("update users set info = jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true")
+ execute("update users set info = safe_jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true")
end
end