Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
353B

  1. defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do
  2. use Ecto.Migration
  3. def up do
  4. execute("
  5. UPDATE users
  6. SET info = info || '{
  7. \"email_notifications\": {
  8. \"digest\": false
  9. }
  10. }'")
  11. end
  12. def down do
  13. execute("
  14. UPDATE users
  15. SET info = info - 'email_notifications'
  16. ")
  17. end
  18. end