mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-14 13:14:57 +00:00
20 lines
353 B
Elixir
20 lines
353 B
Elixir
defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do
|
|
use Ecto.Migration
|
|
|
|
def up do
|
|
execute("
|
|
UPDATE users
|
|
SET info = info || '{
|
|
\"email_notifications\": {
|
|
\"digest\": false
|
|
}
|
|
}'")
|
|
end
|
|
|
|
def down do
|
|
execute("
|
|
UPDATE users
|
|
SET info = info - 'email_notifications'
|
|
")
|
|
end
|
|
end
|