Split hide_network into hide_followers & hide_followings (fixed)

This commit is contained in:
Maxim Filippov 2019-02-03 21:24:09 +03:00
commit 16ce129e38
10 changed files with 89 additions and 45 deletions

View file

@ -0,0 +1,11 @@
defmodule Pleroma.Repo.Migrations.SplitHideNetwork do
use Ecto.Migration
def up do
execute("UPDATE users SET info = jsonb_set(info, '{hide_followings}'::text[], info->'hide_network')")
execute("UPDATE users SET info = jsonb_set(info, '{hide_followers}'::text[], info->'hide_network')")
end
def down do
end
end