Replies: 4 comments 3 replies
-
this is very easy in prisma as they rely on the migration name as primary key for identifying the migration. Too bad in drizzle there is a hash and no easy way to calculate the hash from the CLI |
Beta Was this translation helpful? Give feedback.
-
Has anyone seen any update on this? We're running into the same issue |
Beta Was this translation helpful? Give feedback.
-
I tested around a bit and it seems like the hash is not used at all. When you change the (I've only tested this with a single migration so I'm not sure what happens with multiple migrations) |
Beta Was this translation helpful? Give feedback.
-
+1 The way I got around this was to move the SQL out of the first |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When adopting drizzle to an existing project, the workflow seems to be:
introspect:pg
to generate the schemaOften the migration cannot be re-run as it contains commands that cannot be reapplied (e.g. re-creating a primary key).
So how can this migration be marked as applied?
Beta Was this translation helpful? Give feedback.
All reactions