benjick
Explore posts from serversDTDrizzle Team
•Created by benjick on 9/24/2024 in #help
drizzle-kit picks wrong version in monorepo (pnpm)
Hello
I have a monorepo with pnpm where I have two apps. One nextjs app and one Payload CMS app. Payload lags behind on drizzle-orm version but I want to update it for my nextjs app.
I have installed different version in each project, but running
drizzle-kit generate
in the nextjs app complains about a too old drizzle-orm version (the one from the payload app)
How can I resolve this? Can I force drizzle-kit to pick a specific version?5 replies
DTDrizzle Team
•Created by benjick on 7/22/2024 in #help
there is no unique or exclusion constraint matching the ON CONFLICT specification
Having this issue that I've seen others also getting, but without explanation.
I'm only getting this error in production, not in my local dev environment.
I have a target,
publishedTasks.taskId
:
What am I doing wrong here?48 replies
DTDrizzle Team
•Created by benjick on 6/1/2024 in #help
Noob question about DROP TABLE ordering
Hello!
I'm about to drop my first table with Drizzle, and I noticed the SQL file looks like this:
won't dropping the table first cause issues with the FK contraints?
4 replies
DTDrizzle Team
•Created by benjick on 5/28/2024 in #help
drizzle-kit push fails every second time
Hello
I'm having this annoying issue where I have to wipe my postgres database before doing a
push
.
How can I resolve this? I'm attaching a log below, this is without changing anything in between:
4 replies
DTDrizzle Team
•Created by benjick on 5/12/2024 in #help
Find needed indexes
Hello!
Is there any way to find unindexed columns which should be indexed with drizzle? Firebase has this feature where it yells at you if you select or sort on columns which hasn't been indexed.
Cheers
1 replies
DTDrizzle Team
•Created by benjick on 11/29/2023 in #help
Property '[IsDrizzleTable]' is missing in type
Hello!
I've just updated to [email protected] and I can't use drizzle-zod anymore (@0.5.1).
This is my code:
Gives me the following error:
What can I do?
12 replies
DTDrizzle Team
•Created by benjick on 10/24/2023 in #help
column "summary" cannot be cast automatically to type jsonb
Hello!
I'm getting this error when running my migrations, I used to have a text field and now it's a jsonb
How can I resolve this?
This is the migration:
10 replies
DTDrizzle Team
•Created by benjick on 9/23/2023 in #help
How to handle relations during insert?
Is this correct? Feels like I should be able to do it in one call, but values doesn't accept anything else
8 replies