ensure ap_enabled true if coming back pleroma

This commit is contained in:
FloatingGhost 2023-08-16 23:11:36 +01:00
parent f7ea0a1248
commit 5c164028cf

View file

@ -1,9 +1,15 @@
defmodule Pleroma.Repo.Migrations.RemoveUserApEnabled do defmodule Pleroma.Repo.Migrations.RemoveUserApEnabled do
use Ecto.Migration use Ecto.Migration
def change do def up do
alter table(:users) do alter table(:users) do
remove(:ap_enabled, :boolean, default: false, null: false) remove_if_exists(:ap_enabled, :boolean)
end
end
def down do
alter table(:users) do
add_if_not_exists(:ap_enabled, :boolean, default: true, null: false)
end end
end end
end end