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.
No description
No description
5 Replies
Mario564
Mario5645mo ago
@abhishek Hi there. I see there's a type error in your config, what's that error about? That could be the issue
abhishek
abhishekOP5mo ago
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.
No description
Mario564
Mario5645mo ago
The docs may be outdated. Try removing the driver key and try running the generate command
abhishek
abhishekOP5mo ago
yes that worked Thanks. They showed the driver too in the docs.
Mario564
Mario5645mo ago
It was required in an earlier version, and I assume the docs weren't updated to reflect this. Glad to have helped though
Want results from more Discord servers?
Add your server