diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-12 18:45:11 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-09-13 00:39:18 +0200 |
commit | 925207ba97ddb648bd7ce87261f89b9dee51e620 (patch) | |
tree | e11398df47c1ce626eac32ab71c968b19ed18174 /schema.sql | |
parent | 0f827738c1781726c78e51928cf437d97a878ded (diff) | |
download | server-925207ba97ddb648bd7ce87261f89b9dee51e620.tar.gz |
Don't recreate forum FTS search tables every time we update the schema.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -261,10 +261,10 @@ create index if not exists posts_thread_idx on posts(thread_id); -- Forum Search (FTS5) -- -drop table if exists forum_search; -create virtual table forum_search using fts5(thread_id, post_id, text, tokenize='porter unicode61'); -insert into forum_search(thread_id,post_id,text) select thread_id, 0, subject from threads; -insert into forum_search(thread_id,post_id,text) select thread_id, post_id, body from posts; +-- drop table if exists forum_search; +create virtual table if not exists forum_search using fts5(thread_id, post_id, text, tokenize='porter unicode61'); +-- insert into forum_search(thread_id,post_id,text) select thread_id, 0, subject from threads; +-- insert into forum_search(thread_id,post_id,text) select thread_id, post_id, body from posts; -- Games -- |