delete search on item delete
This commit is contained in:
parent
24aa8859b3
commit
c04f54619b
1 changed files with 4 additions and 0 deletions
|
|
@ -56,6 +56,10 @@ create table if not exists settings (
|
||||||
);
|
);
|
||||||
|
|
||||||
create virtual table if not exists search using fts5(title, description, content);
|
create virtual table if not exists search using fts5(title, description, content);
|
||||||
|
|
||||||
|
create trigger if not exists del_item_search after delete on items begin
|
||||||
|
delete from search where rowid = old.search_rowid;
|
||||||
|
end;
|
||||||
`
|
`
|
||||||
|
|
||||||
type Storage struct {
|
type Storage struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue