Merge branch 'set-approval-pending-default-to-false' into 'develop'

Set `users.approval_pending` default to `false`

See merge request pleroma/pleroma!2874
This commit is contained in:
lain 2020-08-11 13:59:17 +00:00
commit c66f6bd0ad
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
defmodule Pleroma.Repo.Migrations.SetDefaultsToUserApprovalPending do
use Ecto.Migration
def up do
execute("UPDATE users SET approval_pending = false WHERE approval_pending IS NULL")
alter table(:users) do
modify(:approval_pending, :boolean, default: false, null: false)
end
end
def down do
:ok
end
end