lauti
lauti
DTDrizzle Team
Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
Y try to push this in my supabase database
export const user_provider_topics = pgTable( 'influencer_topics', { uuid: uuid().defaultRandom().primaryKey().notNull(), topic: text().notNull(), created_at: timestamp('created_at', { mode: 'string' }).defaultNow().notNull(), updated_at: timestamp('updated_at', { mode: 'string' }).defaultNow().notNull(), }, (table) => { return { userProviderTopicUuidUnique: unique('user_provider_topic_uuid_unique').on( table.uuid ), } } )
but i recivied this errorNo config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/lauti/Documents/pich-monorepo/drizzle.config.ts' Using 'postgres' driver for database querying [⡿] Pulling schema from database... /Users/lauti/Documents/pich-monorepo/node_modules/drizzle-kit/bin.cjs:20568 if (column7.column_default.endsWith("[]")) { ^ TypeError: Cannot read properties of undefined (reading 'endsWith') at defaultForColumn (/Users/lauti/Documents/pich-monorepo/node_modules/drizzle-kit/bin.cjs:20568:34) at /Users/lauti/Documents/pich-monorepo/node_modules/drizzle-kit/bin.cjs:20168:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
>
49 replies