mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 11:47:34 +00:00
3 lines
563 B
SQL
3 lines
563 B
SQL
create view view_posts_with_title as select id, path, title, content, published, updated, blog, section from (select p.rowid as id, p.path as path, pp.value as title, content, published, updated, blog, section from posts p left outer join post_parameters pp on p.path = pp.path where pp.parameter = 'title');
|
|
create virtual table posts_fts using fts5(path unindexed, title, content, published unindexed, updated unindexed, blog unindexed, section unindexed, content=view_posts_with_title, content_rowid=id);
|
|
-- insert into posts_fts(posts_fts) values ('rebuild'); |