1 defmodule Pleroma.Repo.Migrations.SplitHideNetwork do
5 execute("UPDATE users SET info = '{\"hide_network\": false}'::jsonb WHERE NOT(info::jsonb ? 'hide_network')")
6 execute("UPDATE users SET info = jsonb_set(info, '{hide_followings}'::text[], info->'hide_network')")
7 execute("UPDATE users SET info = jsonb_set(info, '{hide_followers}'::text[], info->'hide_network')")