mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 10:33:09 +00:00
21 lines
352 B
Elixir
21 lines
352 B
Elixir
|
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
|