pleroma/priv/repo/migrations/20230306112859_instances_add_metadata.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

14 lines
406 B
Elixir

# Pleroma: A lightweight social networking server
# Copyright © 2017-2023 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Repo.Migrations.InstancesAddMetadata do
use Ecto.Migration
def change do
alter table(:instances) do
add_if_not_exists(:metadata, :map)
add_if_not_exists(:metadata_updated_at, :utc_datetime)
end
end
end