core: add content noteId to sqlite index

This commit is contained in:
Abdullah Atta
2024-04-17 16:14:00 +05:00
parent dac1441add
commit d0372b82db

View File

@@ -275,6 +275,12 @@ export class NNMigrationProvider implements MigrationProvider {
.on("attachments")
.column("hash")
.execute();
await db.schema
.createIndex("content_noteId")
.on("content")
.columns(["noteId"])
.execute();
},
async down(db) {}
}