mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
add indices on blobId
This commit is contained in:
3
db/migrations/0223__create_blobId_indices.sql
Normal file
3
db/migrations/0223__create_blobId_indices.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE INDEX IDX_notes_blobId on notes (blobId);
|
||||
CREATE INDEX IDX_revisions_blobId on revisions (blobId);
|
||||
CREATE INDEX IDX_attachments_blobId on attachments (blobId);
|
||||
@@ -128,3 +128,7 @@ CREATE TABLE IF NOT EXISTS "attachments"
|
||||
deleteId TEXT DEFAULT NULL);
|
||||
CREATE INDEX IDX_attachments_ownerId_role
|
||||
on attachments (ownerId, role);
|
||||
|
||||
CREATE INDEX IDX_notes_blobId on notes (blobId);
|
||||
CREATE INDEX IDX_revisions_blobId on revisions (blobId);
|
||||
CREATE INDEX IDX_attachments_blobId on attachments (blobId);
|
||||
|
||||
Reference in New Issue
Block a user