Persist notification group keys

This commit is contained in:
Lain Soykaf 2026-05-23 11:38:33 +04:00
commit add3844c6d
No known key found for this signature in database
10 changed files with 505 additions and 116 deletions

View file

@ -0,0 +1,15 @@
defmodule Pleroma.Repo.Migrations.AddGroupKeyToNotifications do
use Ecto.Migration
def change do
alter table(:notifications) do
add(:group_key, :string)
end
create_if_not_exists(
index(:notifications, [:user_id, :group_key, "id desc nulls last"],
where: "group_key IS NOT NULL"
)
)
end
end