From 441f56dec46bab1069a5b42058f757ac595a58bf Mon Sep 17 00:00:00 2001 From: Ethan Niser Date: Sun, 20 Oct 2024 22:07:01 -0400 Subject: [PATCH] update schema --- src/db/schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/schema.ts b/src/db/schema.ts index ca0fd7c..acb4808 100644 --- a/src/db/schema.ts +++ b/src/db/schema.ts @@ -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(), }), );