pleroma/priv/repo/optional_migrations/akkoma_rollbacks/20221020135943_add_nodeinfo.exs
marcin mikołajczak b0b674f47e Support migration from Akkoma
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-09-07 19:07:16 +02:00

15 lines
389 B
Elixir

# Adapted from Akkoma
# https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/repo/migrations/20221020135943_add_nodeinfo.exs
defmodule Pleroma.Repo.Migrations.AddNodeinfo do
use Ecto.Migration
def up, do: :ok
def down do
alter table(:instances) do
remove_if_exists(:nodeinfo, :map)
remove_if_exists(:metadata_updated_at, :naive_datetime)
end
end
end