projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Mix pleroma.instance creates parent directories now
[akkoma]
/
priv
/
repo
/
migrations
/
20200811125613_set_defaults_to_user_approval_pending.exs
1
defmodule Pleroma.Repo.Migrations.SetDefaultsToUserApprovalPending do
2
use Ecto.Migration
3
4
def up do
5
execute("UPDATE users SET approval_pending = false WHERE approval_pending IS NULL")
6
7
alter table(:users) do
8
modify(:approval_pending, :boolean, default: false, null: false)
9
end
10
end
11
12
def down do
13
:ok
14
end
15
end