[BUG]: `drizzle-kit migrate` doesn't work when db credentials are set as separate properties
bug
### Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
0.45.2
### What version of `drizzle-kit` are you using?
0.31.10
### Other packages
_No response_
### Describe the Bug
> What is the undesired behavior?
If I have config like following in drizzle.config.ts, `drizzle-kit migrate` won't work
```
dbCredentials: {
database: process.env.POSTGRES_DB!,
user: process.env.POSTGRES_USER!,
password: process.env.POSTGRES_PASSWORD!,
host: process.env.POSTGRES_HOST!,
port: Number(process.env.POSTGRES_PORT ?? 5432),
```
it works with `url` property.
> What are the steps to reproduce it?
write `dbCredentials` as separate fields and run `drizzle-kit migrate`
> What is the desired result?
drizzle-kit should work even if credentials are provided as separate properties, not only with `url`
> What database engine are you using? Are you using a specific cloud provider? Which one?
I'm using local postgresql via docker (docker compose)
0 条评论