Merge branch 'feature/push-subject-for-dm' into 'develop'
[akkoma] / priv / repo / migrations / 20190711042024_copy_muted_to_muted_notifications.exs
index b717cab2e8ec546c59b881d55c6781f0b9660ab8..a5eec848b19b307e113f4874ea37f827c681ea94 100644 (file)
@@ -3,6 +3,8 @@ 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