summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@cock.li>2019-02-19 23:09:16 +0300
committerEkaterina Vaartis <vaartis@cock.li>2019-02-19 23:09:16 +0300
commit5a46d37af9fb1914d795cb90d28356efcd0790d5 (patch)
treeae0288fb21fe50b88a23ed7ae4aba317e3cc7eef /priv
parent465b547c905b4faa26ec1cf5f0175c55430e8041 (diff)
downloadpleroma-5a46d37af9fb1914d795cb90d28356efcd0790d5.tar.gz
pleroma-5a46d37af9fb1914d795cb90d28356efcd0790d5.zip
Update the mute implementation to the current codebase
Make it part of the info thing (and do a migration to ensure it's there)
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20190219192317_create_user_mutes.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190219192317_create_user_mutes.exs b/priv/repo/migrations/20190219192317_create_user_mutes.exs
new file mode 100644
index 000000000..304074567
--- /dev/null
+++ b/priv/repo/migrations/20190219192317_create_user_mutes.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.CreateUserMutes do
+ use Ecto.Migration
+
+ def change do
+ execute "UPDATE users SET info = jsonb_set(info, '{mutes}', '[]'::jsonb);"
+ end
+end