Merge branch 'feature/split-hide-network' into 'develop'
[akkoma] / priv / repo / migrations / 20190128181211_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(jsonb_set(info, '{hide_followers}'::text[], info->'hide_network'), '{hide_followings}'::text[], info->'hide_network')")
6 end
7
8 def down do
9 end
10 end