projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
normalise markup by default (#316)
[akkoma]
/
priv
/
repo
/
migrations
/
20200919182636_remoteip_plug_rename.exs
1
defmodule Pleroma.Repo.Migrations.RemoteipPlugRename do
2
use Ecto.Migration
3
4
import Ecto.Query
5
6
def up do
7
config =
8
from(c in Pleroma.ConfigDB, where: c.group == ^:pleroma and c.key == ^Pleroma.Plugs.RemoteIp)
9
|> Pleroma.Repo.one()
10
11
if config do
12
config
13
|> Ecto.Changeset.change(key: Pleroma.Web.Plugs.RemoteIp)
14
|> Pleroma.Repo.update()
15
end
16
end
17
18
def down, do: :ok
19
end