mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
core: add index on pendingsyncitems.type
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user