core: add index on pendingsyncitems.type

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2026-07-10 09:28:43 +05:00
parent 15ca19ddd0
commit bc9b27c138

View File

@@ -507,6 +507,13 @@ export class NNMigrationProvider implements MigrationProvider {
.addColumn("data", "text")
.addColumn("dateCreated", "integer")
.execute();
await db.schema
.createIndex("pending_sync_items_type")
.ifNotExists()
.on("pendingsyncitems")
.column("type")
.execute();
}
}
};