Skip to content

Commit 0e0aa70

Browse files
committed
Fix up extension creation
1 parent c80586d commit 0e0aa70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prisma/migrations/20251107090000_add_my_reviews_indexes/migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ CREATE INDEX IF NOT EXISTS "challenge_phase_challenge_open_end_idx"
1010

1111
CREATE INDEX IF NOT EXISTS "challenge_name_trgm_idx"
1212
ON "Challenge"
13-
USING gin ("name" gin_trgm_ops);
13+
USING gin ("name" pg_catalog.gin_trgm_ops);

prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ datasource db {
55

66
generator client {
77
provider = "prisma-client-js"
8-
previewFeatures = ["fullTextSearchPostgres"]
8+
previewFeatures = ["fullTextSearchPostgres", "postgresqlExtensions"]
99
}
1010

1111
// Enum for allowed challenge track values (matches app-constants)
@@ -156,7 +156,7 @@ model Challenge {
156156
@@index([status, startDate])
157157
@@index([trackId, typeId, status])
158158
@@index([status, typeId, trackId, createdAt(sort: Desc)], map: "challenge_status_type_track_created_at_idx")
159-
@@index([name], type: Gin, ops: [gin_trgm_ops], map: "challenge_name_trgm_idx")
159+
@@index([name(ops: raw("pg_catalog.gin_trgm_ops"))], type: Gin, map: "challenge_name_trgm_idx")
160160
@@index([legacyId])
161161
@@index([projectId, status])
162162
}

0 commit comments

Comments
 (0)