Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanniser committed Oct 21, 2024
1 parent 5fae697 commit 441f56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const products = pgTable(
"gin",
sql`to_tsvector('english', ${table.name})`,
),
nameTrgmIndex: index("trgm")
.using("gin", sql`${table.name}`, sql`gi`, sql`n_trgm_ops`)
nameTrgmIndex: index("name_trgm_index")
.using("gin", sql`${table.name} gin_trgm_ops`) // Use gin_trgm_ops for trigram search
.concurrently(),
}),
);
Expand Down

0 comments on commit 441f56d

Please sign in to comment.