Skip to content

Commit 8cdd107

Browse files
committed
prisma fix
1 parent ef8f74e commit 8cdd107

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/backend/prisma/schema.prisma

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ model ProjectUser {
225225
@@index([tenancyId, displayName(sort: Desc)], name: "ProjectUser_displayName_desc")
226226
@@index([tenancyId, createdAt(sort: Asc)], name: "ProjectUser_createdAt_asc")
227227
@@index([tenancyId, createdAt(sort: Desc)], name: "ProjectUser_createdAt_desc")
228-
@@index([shouldUpdateSequenceId], name: "ProjectUser_shouldUpdateSequenceId_idx")
228+
// Partial index for external db sync backfill lives in migration SQL.
229229
}
230230

231231
// This should be renamed to "OAuthAccount" as it is not always bound to a user
@@ -290,8 +290,7 @@ model ContactChannel {
290290
@@unique([tenancyId, projectUserId, type, value])
291291
// only one contact channel per project with the same value and type can be used for auth
292292
@@unique([tenancyId, type, value, usedForAuth])
293-
// partial index for external db sync backfill (WHERE shouldUpdateSequenceId = TRUE)
294-
@@index([shouldUpdateSequenceId], name: "ContactChannel_shouldUpdateSequenceId_idx")
293+
// Partial index for external db sync backfill lives in migration SQL (WHERE shouldUpdateSequenceId = TRUE).
295294
}
296295

297296
model AuthMethod {
@@ -1092,6 +1091,5 @@ model DeletedRow {
10921091
@@index([tenancyId])
10931092
// composite index for efficient querying of deleted rows by tenant and table, ordered by sequence
10941093
@@index([tenancyId, tableName, sequenceId])
1095-
// partial index for external db sync backfill (WHERE shouldUpdateSequenceId = TRUE)
1096-
@@index([shouldUpdateSequenceId], name: "DeletedRow_shouldUpdateSequenceId_idx")
1094+
// Partial index for external db sync backfill lives in migration SQL (WHERE shouldUpdateSequenceId = TRUE).
10971095
}

0 commit comments

Comments
 (0)