Randomly stopped being able to generate migrations (MySQL)
Hey! Been trying things out the past day and everything was going great - until I deleted my
migrations
folder, attempted to re-generate migrations, and was met with 0 tables
π€£
I've killed-off all of my schema, except for one simple table, and ran generate:mysql
with DEBUG
;
So at the very least, the paths I'm giving seem to work fine, as it can transpile the schema + outputs a journal with zero entries
under the migrations path7 Replies
Could you send drizzle-kit version you are using?
v0.17.1
Oh sorry, itβs in message youβve sent
@OYED hmm, I'm unable to reproduce, maybe we can hop on the call so you show me what you got
we'll be able to trace the problem way faster
Sure thing - do you guys have a voice channel here or?
my headphones battery's dead, gimme 30 mins, I get to the office
Awesome, thanks π
Seems @alexblokh found the issue - I was using
drizzle-orm/expressions
in a few different services in the monorepo, and installed drizzle-orm
in to all of them to have access to that, which caused the issue
After exporting the expressions from the same package that I store the schema & migrations in, removing the drizzle-orm
dependency from every other package and (for good measure) re-generating the lockfile, it generates migrations perfectly fine!
Thanks again @alexblokh π