summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorKaren Konou <konoukaren@gmail.com>2019-02-11 12:10:10 +0100
committerKaren Konou <konoukaren@gmail.com>2019-02-11 12:10:49 +0100
commitac72b578da673282b927b945bfe03cd3012444b6 (patch)
tree45b8c075aa883ca47fd24f3e71f6740bd2f2308b /priv/repo/migrations
parentc01ef574c192488c2643a20b4064439757613449 (diff)
parent48552b38b2dd26bb832e940a0e52c0e1c2165b31 (diff)
downloadpleroma-ac72b578da673282b927b945bfe03cd3012444b6.tar.gz
pleroma-ac72b578da673282b927b945bfe03cd3012444b6.zip
Merge branch 'develop' into feature/thread-muting
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20190203185340_split_hide_network.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/repo/migrations/20190203185340_split_hide_network.exs b/priv/repo/migrations/20190203185340_split_hide_network.exs
index 9c44e8aff..8b7a9151b 100644
--- a/priv/repo/migrations/20190203185340_split_hide_network.exs
+++ b/priv/repo/migrations/20190203185340_split_hide_network.exs
@@ -2,9 +2,9 @@ defmodule Pleroma.Repo.Migrations.SplitHideNetwork do
use Ecto.Migration
def up do
- execute("UPDATE users SET info = jsonb_set(info, '{hide_network}'::text[], 'false'::jsonb) WHERE NOT(info::jsonb ? 'hide_network')")
- 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')")
+ execute("UPDATE users SET info = jsonb_set(info, '{hide_network}'::text[], 'false'::jsonb) WHERE NOT(info::jsonb ? 'hide_network') AND local")
+ execute("UPDATE users SET info = jsonb_set(info, '{hide_followings}'::text[], info->'hide_network') WHERE local")
+ execute("UPDATE users SET info = jsonb_set(info, '{hide_followers}'::text[], info->'hide_network') WHERE local")
end
def down do