DT
Drizzle Teamgerty1
generate:pg "snapshot.json data is malformed" error after merge conflicts
Hi there, my team and I use the following method to avoid merge issues:
If master has migrations that you are missing, drop all your new migrations, merge in the master, then run generate:pg to re-generate your migrations.
Based on my understanding of drizzle-kit, this should work, but generate:pg is consistently failing with the above error after I drop my new migrations then merge in my team's. Anyone run into this before? Is there any way to get more info on what the issue with the snapshot is?
AS
Andrii Sherman•301d ago
Would love to help you here
could you please list a step by step commands you are executing?
G
gerty1•301d ago
Thanks! This issue was fixed when I updated drizzle-kit from 0.19.3 to 0.19.4
Maybe its because my teammate was on 0.19.4 before I was
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More PostsImporting drizzle-zod Schemas on the ClientHi,
Is it ok to import schemas generated with `drizzle-zod` via `createInsertSchema` on the client?Updating jsonb objects with Drizzle?Hey there, i'm currently working on migrating my database and code from MongoDB with Mongoose to Posauto updated_atis there a way to automatically update the updatedAt column of a postgres table ?Just bringing attention to this potential issue: use of wrong schema name in drizzle kit outputhttps://github.com/drizzle-team/drizzle-orm/issues/890
Just wondering if this is intended behavior oFulltext index MySQLHow can I define a fulltext index with MySQL? there is no fulltextIndex available in mysql-core.Anyone who can give a example of thissupport fsp for .onUpdateNow(),title explains itYou're about to add not-null version without default valueI added this column
```
version: int("version").notNull().default(0),
```
and it's trying to truncCannot read properties of undefined (reading 'columns')```
/home/thdxr/dev/projects/bumi/bumi/node_modules/.pnpm/drizzle-kit@0.19.6/node_modules/drizzle-kineon coldstarts in vercel edgehey!! if my neondb is in `idle` state, and i try to query something -- it will error out.
`- error