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.

20 satır
417B

  1. defmodule Pleroma.Repo.Migrations.RemoteipPlugRename do
  2. use Ecto.Migration
  3. import Ecto.Query
  4. def up do
  5. config =
  6. from(c in Pleroma.ConfigDB, where: c.group == ^:pleroma and c.key == ^Pleroma.Plugs.RemoteIp)
  7. |> Pleroma.Repo.one()
  8. if config do
  9. config
  10. |> Ecto.Changeset.change(key: Pleroma.Web.Plugs.RemoteIp)
  11. |> Pleroma.Repo.update()
  12. end
  13. end
  14. def down, do: :ok
  15. end