summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-12 18:45:11 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-13 00:39:18 +0200
commit925207ba97ddb648bd7ce87261f89b9dee51e620 (patch)
treee11398df47c1ce626eac32ab71c968b19ed18174 /schema.sql
parent0f827738c1781726c78e51928cf437d97a878ded (diff)
downloadserver-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.sql8
1 files changed, 4 insertions, 4 deletions
diff --git a/schema.sql b/schema.sql
index e121bda..6439d5f 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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 --