ensure ap_enabled true if coming back pleroma
Some checks are pending
ci/woodpecker/push/build-amd64 Pipeline is pending
ci/woodpecker/push/build-arm64 Pipeline is pending
ci/woodpecker/push/docs Pipeline is pending
ci/woodpecker/push/lint Pipeline is pending
ci/woodpecker/push/test Pipeline is pending

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
use Ecto.Migration
def change do
def up 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