what2watch/migrations/20240203053645_fts.up.sql

6 lines
271 B
MySQL
Raw Normal View History

2024-02-03 05:47:50 +00:00
create virtual table if not exists star_search using fts5(name, id);
insert into star_search(name, id) select name, id from stars;
create virtual table if not exists watch_search using fts5(title, id);
insert into watch_search(title, id) select title, id from watches;