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

This commit is contained in:
FloatingGhost 2023-08-16 23:11:36 +01:00
parent f7ea0a1248
commit 5c164028cf
1 changed files with 8 additions and 2 deletions

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