Rebuild MessageSearchTable. Database version 25. Bug 772522.
* sql/version-025.sql: Rebuild MessageSearchTable, and while we're here optimise it as well.
This commit is contained in:
parent
07306e2483
commit
3e721feedb
2 changed files with 16 additions and 0 deletions
15
sql/version-025.sql
Normal file
15
sql/version-025.sql
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--
|
||||
-- Rebuild corrupted MessageSearchTable indexes. Bug 772522.
|
||||
--
|
||||
|
||||
-- According to the FTS3 docs <https://www.sqlite.org/fts3.html>, this
|
||||
-- needs to be done "whenever the implementation of a custom tokeniser
|
||||
-- changes", but Geary is also seeing the indexes being corrupted when
|
||||
-- doing UPDATEs on MessageSearchTable. Bug 772522 has replaced use of
|
||||
-- that with a SELECT/DELETE/INSERT which does not result in a
|
||||
-- corrupted index, so do a rebuild here to ensure everyone's is not
|
||||
-- back in order.
|
||||
INSERT INTO MessageSearchTable(MessageSearchTable) VALUES('rebuild');
|
||||
|
||||
-- While we're here, optimise it as well.
|
||||
INSERT INTO MessageSearchTable(MessageSearchTable) VALUES('optimize');
|
||||
Loading…
Add table
Add a link
Reference in a new issue