Merge pull request 'Manually define PATH for Arch Linux users in systemd unit' (...
[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("update users set info = '{}' where info is null")
6
7 execute(
8 "update users set info = safe_jsonb_set(info, '{muted_notifications}', info->'mutes', true) where local = true"
9 )
10 end
11 end