Add User.Info.email_notifications

This commit is contained in:
Roman Chvanikov 2019-04-13 17:40:42 +07:00
commit 371a4aed2c
3 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,20 @@
defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do
use Ecto.Migration
def up do
execute("
UPDATE users
SET info = info || '{
\"email_notifications\": {
\"digest\": true
}
}'")
end
def down do
execute("
UPDATE users
SET info = info - 'email_notifications'
")
end
end