Mastodon API: Add pleroma.unread_conversation_count to the Account entity
This commit is contained in:
parent
e51c20f28a
commit
8249924485
12 changed files with 222 additions and 14 deletions
|
|
@ -0,0 +1,11 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddUnreadConversationCountToUserInfo do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute("""
|
||||
update users set info = jsonb_set(info, '{unread_conversation_count}', 0::varchar::jsonb, true) where local=true
|
||||
""")
|
||||
end
|
||||
|
||||
def down, do: :ok
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue