Split hide_network into hide_followers & hide_followings (fixed)
This commit is contained in:
parent
69a38644bc
commit
16ce129e38
10 changed files with 89 additions and 45 deletions
11
priv/repo/migrations/20190203185340_split_hide_network.exs
Normal file
11
priv/repo/migrations/20190203185340_split_hide_network.exs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue