Merge branch 'feature/split-hide-network' into 'develop'
Split hide_network into hide_followers & hide_followings See merge request pleroma/pleroma!733
This commit is contained in:
commit
0a82a7e6d6
10 changed files with 88 additions and 45 deletions
10
priv/repo/migrations/20190128181211_split_hide_network.exs
Normal file
10
priv/repo/migrations/20190128181211_split_hide_network.exs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
defmodule Pleroma.Repo.Migrations.SplitHideNetwork do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute("UPDATE users SET info = jsonb_set(jsonb_set(info, '{hide_followers}'::text[], info->'hide_network'), '{hide_followings}'::text[], info->'hide_network')")
|
||||
end
|
||||
|
||||
def down do
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue