Skip to content

Commit 6eae63d

Browse files
committed
ProjectAlertStorage index
``` CREATE INDEX CONCURRENTLY IF NOT EXISTS "ProjectAlertStorage_alertChannelId_alertType_storageId_idx" ON "ProjectAlertStorage"("alertChannelId", "alertType", "storageId"); ```
1 parent 0e14b6d commit 6eae63d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "ProjectAlertStorage_alertChannelId_alertType_storageId_idx" ON "ProjectAlertStorage"("alertChannelId", "alertType", "storageId");

internal-packages/database/prisma/schema.prisma

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,8 @@ model ProjectAlertStorage {
21922192
21932193
createdAt DateTime @default(now())
21942194
updatedAt DateTime @updatedAt
2195+
2196+
@@index([alertChannelId, alertType, storageId])
21952197
}
21962198

21972199
model OrganizationIntegration {

0 commit comments

Comments
 (0)