status-go/protocol/migrations/sqlite/1622010048_add_unviewed_mentions_count.up.sql
Andrea Maria Piana 11de62749d Add unviewed mentions count
This commit add a field to count the unviewed mentions in a given chat.
The usage pattern is identical to `UnviewedMessagesCount`
2021-05-28 13:05:23 +02:00

3 lines
114 B
SQL

ALTER TABLE chats ADD COLUMN unviewed_mentions_count INT DEFAULT 0;
UPDATE chats SET unviewed_mentions_count = 0;