lauti
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
@Raphaël M (@rphlmr) ⚡
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
Yes I understood that, but how should be the connection to supabase in the drizzle configuration? In my local I use session mode and in production I use transaction mode?
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
I have not found the solution in the documents
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
can u show me how the config would be? because if i add session mode all my app is in session mode..
@Raphaël M (@rphlmr) ⚡
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
thanks
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
perfect
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
i'll try with this port
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
make sense...
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
ohh okey
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
TypeError: Cannot read properties of undefined (reading 'endsWith')
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
sure, but the mode of the db cause this error? why?
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
yes
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
I hope this information will help you
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
@Andrew Sherman @Raphaël M (@rphlmr) ⚡
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
but I got this new error
error TypeError: Cannot read properties of undefined (reading 'toLowerCase')
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
then I downloaded these versions “drizzle-kit”: “^0.24.0”, “drizzle-orm”: “^0.33.0” and the error didn't appear
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
the error comes when i tried to push or pull influencerProviderTopics
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
export const influencer_topic = pgTable(
'influencer_topic',
{
uuid: uuid('uuid').defaultRandom().primaryKey().notNull(),
influencerUuid: uuid('influencer_uuid')
.references(() => providerInfluencers.uuid, { onDelete: 'cascade' })
.notNull(),
topicUuid: uuid('topic_uuid')
.references(() => influencerProviderTopics.uuid, { onDelete: 'cascade' })
.notNull(),
createdAt: timestamp('created_at', { mode: 'string' }).defaultNow().notNull(),
updatedAt: timestamp('updated_at', { mode: 'string' }).defaultNow().notNull(),
},
(table) => ({
influencerTopicUuidUnique: unique('influencer_topic_uuid_unique').on(table.uuid),
})
)
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
export const providerInfluencers = pgTable(
'provider_influencers',
{
uuid: uuid('uuid').defaultRandom().primaryKey().notNull(),
workPlatformId: uuid('work_platform_id').notNull(),
workPlatformName: text('work_platform_name').notNull(),
workPlatformLogoUrl: text('work_platform_logo_url').notNull(),
platformUsername: text('platform_username').notNull(),
externalId: text('external_id').notNull(),
url: text('url').notNull(),
imageUrl: text('image_url'),
fullName: text('full_name'),
introduction: text('introduction'),
isVerified: boolean('is_verified').default(false).notNull(),
platformAccountType: text('platform_account_type'),
gender: text('gender'),
ageGroup: text('age_group'),
language: text('language'),
followerCount: integer('follower_count'),
subscriberCount: integer('subscriber_count'),
contentCount: integer('content_count'),
engagementRate: numeric('engagement_rate'),
averageLikes: integer('average_likes'),
averageViews: integer('average_views'),
creatorLocationCity: text('creator_location_city'),
creatorLocationState: text('creator_location_state'),
creatorLocationCountry: text('creator_location_country'),
contactDetailType: text('contact_detail_type'),
topicUuid: uuid('topic_uuid').references(() => influencerProviderTopics.uuid, {
onDelete: 'set null',
}),
createdAt: timestamp('created_at', { mode: 'string' }).defaultNow().notNull(),
updatedAt: timestamp('updated_at', { mode: 'string' }).defaultNow().notNull(),
},
(table) => {
return {
providerInfluencersUuidUnique: unique('provider_influencers_uuid_unique').on(table.uuid),
}
}
)
49 replies
DTDrizzle Team
•Created by lauti on 11/4/2024 in #help
Cannot read properties of undefined (reading 'endsWith')
export const influencerProviderTopics = pgTable(
'influencer_provider_topics',
{
uuid: uuid('uuid').defaultRandom().primaryKey().notNull(),
topic: text('topic').notNull(),
createdAt: timestamp('created_at', { mode: 'string' }).defaultNow().notNull(),
updatedAt: timestamp('updated_at', { mode: 'string' }).defaultNow().notNull(),
},
(table) => ({
influencerProviderTopicsUuidUnique: unique('influencer_provider_topics_uuid_unique').on(
table.uuid
),
})
)
49 replies