Skip to content

Commit

Permalink
Fix setting up new search table
Browse files Browse the repository at this point in the history
  • Loading branch information
bepaald committed Nov 21, 2024
1 parent 88f9556 commit 1cb3ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ object V239_MessageFullTextSearchEmojiSupport : SignalDatabaseMigration {

db.execSQL("""CREATE VIRTUAL TABLE message_fts USING fts5(body, thread_id UNINDEXED, content=message, content_rowid=_id, tokenize = "unicode61 categories 'L* N* Co Sc So'")""")

db.execSQL("INSERT INTO message_fts(message_fts) VALUES ('rebuild')")

db.execSQL(
"""
CREATE TRIGGER message_ai AFTER INSERT ON message BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ object V242_MessageFullTextSearchEmojiSupportV2 : SignalDatabaseMigration {

db.execSQL("""CREATE VIRTUAL TABLE message_fts USING fts5(body, thread_id UNINDEXED, content=message, content_rowid=_id, tokenize = "unicode61 categories 'L* N* Co Sc So'")""")
db.execSQL("INSERT INTO $FTS_TABLE_NAME ($FTS_TABLE_NAME, rank) VALUES('secure-delete', 1)")
db.execSQL("INSERT INTO $FTS_TABLE_NAME ($FTS_TABLE_NAME) VALUES ('rebuild')")

db.execSQL(
"""
Expand Down

0 comments on commit 1cb3ff4

Please # to comment.