mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01:00
Set users.approval_pending
default to false
This commit is contained in:
parent
686002164a
commit
304ed35743
1 changed files with 15 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue