mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
parent
b3f052860a
commit
cba83c1593
2 changed files with 24 additions and 0 deletions
12
packages/db/migrations/0152.do.update_highlights_saved_search.sql
Executable file
12
packages/db/migrations/0152.do.update_highlights_saved_search.sql
Executable 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;
|
||||
12
packages/db/migrations/0152.undo.update_highlights_saved_search.sql
Executable file
12
packages/db/migrations/0152.undo.update_highlights_saved_search.sql
Executable 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;
|
||||
Loading…
Reference in a new issue