2022-09-16 11:53:11 +00:00
|
|
|
defmodule Pleroma.Repo.Migrations.EnsureMastofeSettings do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
2022-09-16 12:00:40 +00:00
|
|
|
def up do
|
2022-09-16 11:53:11 +00:00
|
|
|
alter table(:users) do
|
|
|
|
add_if_not_exists(:mastofe_settings, :map)
|
|
|
|
end
|
|
|
|
end
|
2022-09-16 12:00:40 +00:00
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:users) do
|
|
|
|
remove_if_exists(:mastofe_settings, :map)
|
|
|
|
end
|
|
|
|
end
|
2022-09-16 11:53:11 +00:00
|
|
|
end
|