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.

20 lines
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