Update the default Highlights query

This query is more of what people want, all their created
highlights, not just ones in their current inbox. Since a normal
workflow would be: read + highlight, archive, review highlights.
This commit is contained in:
Jackson Harper 2024-01-03 12:56:26 +08:00
parent b3f052860a
commit cba83c1593
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,12 @@
-- Type: DO
-- Name: update_highlights_saved_search
-- Description: Update highlights saved search to use all instead of inbox
BEGIN;
UPDATE omnivore.filters
SET filter = 'in:all has:highlights mode:highlights'
WHERE name = 'Highlights'
AND filter = 'has:highlights mode:highlights' ;
COMMIT;

View file

@ -0,0 +1,12 @@
-- Type: UNDO
-- Name: update_highlights_saved_search
-- Description: Update highlights saved search to use all instead of inbox
BEGIN;
UPDATE omnivore.filters
SET filter = 'has:highlights mode:highlights'
WHERE name = 'Highlights'
AND filter = 'in:all has:highlights mode:highlights' ;
COMMIT;