Skip to content

Commit 54ddd68

Browse files
authored
fix: add unique index for settings ownership buildableId (#66)
1 parent 15eb75d commit 54ddd68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs-private/db-management/indexGenerator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ const collectionsWithIndexes: Record<string, IndexSpecification[]> = {
153153
],
154154
settings: [
155155
{ field: { "ownership.clientId": 1 }, name: "ownership.clientId_1" },
156+
{
157+
field: { "ownership.buildableId": 1 },
158+
name: "ownership.buildableId_1",
159+
unique: true
160+
},
156161
{ field: { deleted: 1 }, name: "deleted_1" },
157162
{ field: { active: 1 }, name: "active_1" },
158163
{ field: { createdAt: 1 }, name: "createdAt_1" },

0 commit comments

Comments
 (0)