Skip to content

Commit

Permalink
fix: update index in global message
Browse files Browse the repository at this point in the history
  • Loading branch information
joshxfi committed Apr 8, 2024
1 parent b4ff2fc commit a511013
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified apps/web/prisma/dev.db
Binary file not shown.
Binary file modified apps/web/prisma/dev.db-journal
Binary file not shown.
3 changes: 2 additions & 1 deletion apps/web/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ model GlobalMessage {
userId String?
user User? @relation(name: "sentGlobalMessages", fields: [userId], references: [id], onDelete: Cascade)
@@index([userId, updatedAt(sort: Desc)])
@@index([userId])
@@index([updatedAt(sort: Desc)])
}

0 comments on commit a511013

Please sign in to comment.