mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(db): add index on thread id
This commit is contained in:
parent
cbd90e78ab
commit
a7815b098b
2 changed files with 2 additions and 1 deletions
|
@ -161,6 +161,7 @@ class Message extends Model
|
|||
@additionalSQLiteConfig:
|
||||
setup: ->
|
||||
['CREATE INDEX IF NOT EXISTS MessageListIndex ON Message(account_id, thread_id, date ASC)',
|
||||
'CREATE INDEX IF NOT EXISTS MessageListThreadIndex ON Message(thread_id, date ASC)',
|
||||
'CREATE INDEX IF NOT EXISTS MessageListDraftIndex ON Message(account_id, draft)',
|
||||
'CREATE UNIQUE INDEX IF NOT EXISTS MessageDraftIndex ON Message(client_id)',
|
||||
'CREATE UNIQUE INDEX IF NOT EXISTS MessageBodyIndex ON MessageBody(id)']
|
||||
|
|
|
@ -17,7 +17,7 @@ PriorityUICoordinator = require '../../priority-ui-coordinator'
|
|||
serializeRegisteredObjects,
|
||||
deserializeRegisteredObjects} = require '../models/utils'
|
||||
|
||||
DatabaseVersion = 15
|
||||
DatabaseVersion = 16
|
||||
|
||||
DatabasePhase =
|
||||
Setup: 'setup'
|
||||
|
|
Loading…
Reference in a new issue