Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

23 satır
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