1 defmodule Pleroma.Repo.Migrations.AddNodeinfo do
5 alter table(:instances) do
6 add_if_not_exists(:nodeinfo, :map, default: %{})
7 add_if_not_exists(:metadata_updated_at, :naive_datetime)
12 alter table(:instances) do
13 remove_if_exists(:nodeinfo, :map)
14 remove_if_exists(:metadata_updated_at, :naive_datetime)