Use FTS5 optimizer in production

This commit is contained in:
Fedor Indutny 2023-10-11 01:55:32 +02:00 committed by GitHub
parent f5c18cfb51
commit e124730cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 200 additions and 42 deletions

View file

@ -17,14 +17,7 @@ export function updateToSchemaVersion950(
}
db.transaction(() => {
db.exec(`
--- Enable 'secure-delete'
INSERT INTO messages_fts
(messages_fts, rank)
VALUES
('secure-delete', 1);
`);
// This was a migration that enable secure-delete
db.pragma('user_version = 950');
})();