Split hide_network into hide_followers & hide_followings (fixed)
[akkoma] / priv / repo / migrations / 20190203185340_split_hide_network.exs
1 defmodule Pleroma.Repo.Migrations.SplitHideNetwork do
2 use Ecto.Migration
3
4 def up do
5 execute("UPDATE users SET info = jsonb_set(info, '{hide_followings}'::text[], info->'hide_network')")
6 execute("UPDATE users SET info = jsonb_set(info, '{hide_followers}'::text[], info->'hide_network')")
7 end
8
9 def down do
10 end
11 end