Skip to content

Commit

Permalink
fix: index on discussionTopicId (#10423)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick authored Oct 25, 2024
1 parent 2c49dce commit c101e30
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type {Kysely} from 'kysely'

export async function up(db: Kysely<any>): Promise<void> {
await db.schema
.createIndex('idx_Discussion_discussionTopicId')
.ifNotExists()
.on('Discussion')
.column('discussionTopicId')
.execute()
}

export async function down(db: Kysely<any>): Promise<void> {
await db.schema.dropIndex('idx_Discussion_discussionTopicId').ifExists().execute()
}

0 comments on commit c101e30

Please sign in to comment.