1 defmodule Pleroma.Repo.Migrations.CopyMutedToMutedNotifications do
13 Pleroma.Repo.stream(query)
15 %{info: %{mutes: mutes} = info} = user ->
17 Ecto.Changeset.cast(info, %{muted_notifications: mutes}, [:muted_notifications])
19 Ecto.Changeset.change(user)
20 |> Ecto.Changeset.put_embed(:info, info_cng)
21 |> Pleroma.Repo.update()