fix(schema): add composite index for LlmModelMigration active queries

Adds @@index([sourceModelSlug, isReverted]) to match the migration SQL.
This prevents Prisma migration conflicts and optimizes queries for
non-reverted migrations by source model slug.
This commit is contained in:
Bentlybro
2026-02-13 15:11:48 +00:00
parent d6bf54281b
commit 26490e32d8

View File

@@ -1289,6 +1289,7 @@ model LlmModelMigration {
@@index([sourceModelSlug])
@@index([targetModelSlug])
@@index([isReverted])
@@index([sourceModelSlug, isReverted]) // Composite index for active migration queries
}
////////////// OAUTH PROVIDER TABLES //////////////////
////////////////////////////////////////////////////////////