cannot generate a migration file.
Hello everyone I am trying to use drizzle-kit for my project. I am using Next JS and postgres-sql database which is running in the docker container. when i run
npx drizzle-kit generate
it gives me No config path provided, using default 'drizzle.config.ts'
but it doesn't create any migration file nor gives me any error. i have attached image of my drizzle.config.ts and schema.5 Replies
@abhishek Hi there. I see there's a type error in your config, what's that error about? That could be the issue
Hello so these are the type error. I didn't understand why i get these i follow the docs. but anyway it doesn't throw any error while running the
npx drizzle-kit generate
but doesn't generate migration files from the schema either.The docs may be outdated. Try removing the
driver
key and try running the generate commandyes that worked Thanks. They showed the driver too in the docs.
It was required in an earlier version, and I assume the docs weren't updated to reflect this. Glad to have helped though