Repository navigation
Replies: 4 comments 4 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 |
|
Has anyone seen any update on this? We're running into the same issue |
|
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) |
|
+1 The way I got around this was to move the SQL out of the first |
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:pgto 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?
All reactions