diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-11-21 16:47:52 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-11-21 16:47:52 +0300 |
| commit | cad9b325e567c9c607c2b1d33c915cc88da716b1 (patch) | |
| tree | ed186327c32440517857aba719cba3b059031856 /priv | |
| parent | 81f1c6bc4725f6d97d42ff89f24328ae5b505a2d (diff) | |
| parent | 8feb5dcb4240e92bf20cdc6896877cfa9551b61c (diff) | |
| download | pleroma-cad9b325e567c9c607c2b1d33c915cc88da716b1.tar.gz pleroma-cad9b325e567c9c607c2b1d33c915cc88da716b1.zip | |
Merge remote-tracking branch 'remotes/upstream/develop' into 1335-user-api-id-fields-relations
# Conflicts:
# lib/pleroma/user/search.ex
# test/user_test.exs
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/repo/migrations/20191104133100_set_visible_service_actors.exs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/priv/repo/migrations/20191104133100_set_visible_service_actors.exs b/priv/repo/migrations/20191104133100_set_visible_service_actors.exs new file mode 100644 index 000000000..62907093c --- /dev/null +++ b/priv/repo/migrations/20191104133100_set_visible_service_actors.exs @@ -0,0 +1,22 @@ +defmodule Pleroma.Repo.Migrations.SetVisibleServiceActors do + use Ecto.Migration + import Ecto.Query + alias Pleroma.Repo + + def up do + user_nicknames = ["relay", "internal.fetch"] + + from( + u in "users", + where: u.nickname in ^user_nicknames, + update: [ + set: [invisible: true] + ] + ) + |> Repo.update_all([]) + end + + def down do + :ok + end +end |
