categorisation for gifs
This commit is contained in:
parent
5e18bd3830
commit
d0669bdc5e
15 changed files with 468 additions and 49 deletions
|
|
@ -0,0 +1,2 @@
|
|||
DROP INDEX IF EXISTS public.gif_catalog_category_idx;
|
||||
ALTER TABLE public.gif_catalog DROP COLUMN IF EXISTS category;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
-- Tags a gif_catalog entry with one of the messages.getEmojiGroups category
|
||||
-- titles (see internal/seed/catalog/emoji_groups.json) so tapping a category
|
||||
-- icon in the client's GIF picker can filter to that emotion instead of
|
||||
-- always showing the whole catalog (see files.ClassifyGifCategory). Empty
|
||||
-- means uncategorized -- still served by plain text search, just not by any
|
||||
-- category tap.
|
||||
ALTER TABLE public.gif_catalog ADD COLUMN category text DEFAULT ''::text NOT NULL;
|
||||
|
||||
CREATE INDEX gif_catalog_category_idx ON public.gif_catalog (category) WHERE category <> '';
|
||||
Loading…
Add table
Add a link
Reference in a new issue