Strip status data from Flag (when federating or closing/resolving report)
[akkoma] / priv / repo / migrations / 20190711042024_copy_muted_to_muted_notifications.exs
1 defmodule Pleroma.Repo.Migrations.CopyMutedToMutedNotifications do
2 use Ecto.Migration
3 alias Pleroma.User
4
5 def change do
6 execute(
7 "update users set info = jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true"
8 )
9 end
10 end