Add option to modify HTTP pool size
[akkoma] / priv / repo / migrations / 20221020135943_add_nodeinfo.exs
1 defmodule Pleroma.Repo.Migrations.AddNodeinfo do
2 use Ecto.Migration
3
4 def up do
5 alter table(:instances) do
6 add_if_not_exists(:nodeinfo, :map, default: %{})
7 add_if_not_exists(:metadata_updated_at, :naive_datetime)
8 end
9 end
10
11 def down do
12 alter table(:instances) do
13 remove_if_exists(:nodeinfo, :map)
14 remove_if_exists(:metadata_updated_at, :naive_datetime)
15 end
16 end
17 end