mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-12 13:56:53 +00:00
8 lines
287 B
Elixir
8 lines
287 B
Elixir
|
defmodule Pleroma.Repo.Migrations.FixNullMutedNotificationFields do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
execute("update users set info = safe_jsonb_set(info, '{muted_notifications}', '[]'::jsonb, true) where local = true and info->'muted_notifications' = 'null'::jsonb")
|
||
|
end
|
||
|
end
|