Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
387B

  1. defmodule Pleroma.Repo.Migrations.SetVisibleServiceActors do
  2. use Ecto.Migration
  3. import Ecto.Query
  4. alias Pleroma.Repo
  5. def up do
  6. user_nicknames = ["relay", "internal.fetch"]
  7. from(
  8. u in "users",
  9. where: u.nickname in ^user_nicknames,
  10. update: [
  11. set: [invisible: true]
  12. ]
  13. )
  14. |> Repo.update_all([])
  15. end
  16. def down do
  17. :ok
  18. end
  19. end