Merge remote-tracking branch 'remotes/upstream/develop' into 1304-user-info-deprecation
[akkoma] / priv / repo / migrations / 20190711042024_copy_muted_to_muted_notifications.exs
1 defmodule Pleroma.Repo.Migrations.CopyMutedToMutedNotifications do
2 use Ecto.Migration
3
4 def change do
5 execute(
6 "update users set info = safe_jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true"
7 )
8 end
9 end