Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into fix/activity-expirations-again

This commit is contained in:
lain 2020-08-11 17:49:24 +02:00
commit 0589e9156a
5 changed files with 56 additions and 6 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