summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-02-01 17:05:29 +0000
committerkaniini <nenolod@gmail.com>2019-02-01 17:05:29 +0000
commit0a82a7e6d6f92bf3ca83cf039a445f7c8ce23336 (patch)
tree119d8103065971b10b915056d59d30c584ef00d9 /priv/repo/migrations
parentfc7644798d72a6b8c99fb05196ec9143d00e9ef4 (diff)
parent3e968f9ef22f48819f5f08a493ccf13d6b52cca8 (diff)
downloadpleroma-0a82a7e6d6f92bf3ca83cf039a445f7c8ce23336.tar.gz
pleroma-0a82a7e6d6f92bf3ca83cf039a445f7c8ce23336.zip
Merge branch 'feature/split-hide-network' into 'develop'
Split hide_network into hide_followers & hide_followings See merge request pleroma/pleroma!733
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20190128181211_split_hide_network.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190128181211_split_hide_network.exs b/priv/repo/migrations/20190128181211_split_hide_network.exs
new file mode 100644
index 000000000..2c117dbee
--- /dev/null
+++ b/priv/repo/migrations/20190128181211_split_hide_network.exs
@@ -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