mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
b7e8ce2350
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/251
18 lines
412 B
Elixir
18 lines
412 B
Elixir
defmodule Pleroma.Repo.Migrations.AddNodeinfo do
|
|
use Ecto.Migration
|
|
|
|
def up do
|
|
alter table(:instances) do
|
|
add_if_not_exists(:nodeinfo, :map, default: %{})
|
|
add_if_not_exists(:metadata_updated_at, :naive_datetime)
|
|
end
|
|
end
|
|
|
|
def down do
|
|
alter table(:instances) do
|
|
remove_if_exists(:nodeinfo, :map)
|
|
remove_if_exists(:metadata_updated_at, :naive_datetime)
|
|
end
|
|
end
|
|
end
|