Skip to content

Commit

Permalink
fix: remove the CREATE trgm extension from migration (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Sep 28, 2023
1 parent 6c09fe6 commit e0097f4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions migrations/1695119925617_add-trgm-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@ import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate'
export const shorthands: ColumnDefinitions | undefined = undefined

export async function up(pgm: MigrationBuilder): Promise<void> {
pgm.addExtension('pg_trgm', { ifNotExists: true })
pgm.sql('SET pg_trgm.similarity_threshold = 0.5')
}

export async function down(pgm: MigrationBuilder): Promise<void> {
pgm.dropExtension('pg_trgm')
}

0 comments on commit e0097f4

Please sign in to comment.