Mastodon API: Add pleroma.unread_conversation_count to the Account entity

This commit is contained in:
eugenijm 2019-10-02 00:37:08 +03:00
commit 8249924485
12 changed files with 222 additions and 14 deletions

View file

@ -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