what2watch/migrations/20240203053645_fts.up.sql

6 lines
271 B
SQL

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;