akkoma/priv/repo/migrations/20220108213213_add_mastofe_settings.exs
ilja 3a13f91fff
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
Adapt some migrations so they can be rolled back
This is useful for people who want to migrate back to Pleroma.
It's also added in the docs, but also noted that this is barely tested and to be used at their own risk.
2023-06-09 22:02:26 +02:00

15 lines
288 B
Elixir

defmodule Pleroma.Repo.Migrations.AddMastofeSettings do
use Ecto.Migration
def up do
alter table(:users) do
add_if_not_exists(:mastofe_settings, :map)
end
end
def down do
alter table(:users) do
remove_if_exists(:mastofe_settings, :map)
end
end
end