Merge branch 'backport/custom-field-update' into 'maint/1.1'
[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("update users set info = jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true")
7 end
8 end