honkoma/priv/repo/migrations/20190412052952_add_user_inf...

21 lines
352 B
Elixir
Raw Normal View History

2019-04-13 10:40:42 +00:00
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