Skip to content

Commit ff08fb0

Browse files
committed
fix(knowledge): align drizzle schema id type to uuid
1 parent d210669 commit ff08fb0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/lib/knowledge/dynamic-tables.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
pgTable,
99
text,
1010
timestamp,
11+
uuid,
1112
vector,
1213
} from 'drizzle-orm/pg-core'
1314
import { ALL_TAG_SLOTS, type AllTagSlot } from '@/lib/knowledge/constants'
@@ -166,7 +167,7 @@ function validateEmbedding(embedding: number[], chunkIndex: number): void {
166167
*/
167168
function createDynamicKBTable(tableName: string, dimensions: number) {
168169
return pgTable(tableName, {
169-
id: text('id').primaryKey(),
170+
id: uuid('id').primaryKey(),
170171
knowledgeBaseId: text('knowledge_base_id').notNull(),
171172
documentId: text('document_id').notNull(),
172173
chunkIndex: integer('chunk_index').notNull(),

0 commit comments

Comments
 (0)