Can I re-use my Prisma Migrations on Drizzle?
I'm migrating a project from Prisma to Drizzle, I already have a migrations folder with some migrations there. Can I have Drizzle port/convert those migrations to itself?
3 Replies
I think there is no automated way at the moment
Drizzle does provide a way to write custom migration file, which you can then to generate empty migration files that you can then paste/copy/overwrite over https://orm.drizzle.team/docs/kit-custom-migrations, or just combine them all into one big migration file
Naturally that won’t let you “resume” from any point in history either, as drizzle-kit won’t be aware of which of those migrations have been applied already
Yeah that's what I kinda dislike about Drizzle, not being to mark a migration as "should already happened", which makes "drizzle-kit push" entirely useless
But back to OP, easiest way would be to just genenrate new migration files Drizzle Kit migration feature imo