drizzle-team / drizzle-team/drizzle-orm

[BUG]: migration tries to locate localhost-key.pem file when ssl is disabled

Open
#3,281 3 comments 0 reactions 0 assignees View on GitHub
bug drizzle/kit priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.36.0

### What version of `drizzle-kit` are you using?

0.27.0

### Describe the Bug

Im created a migration file and i try to run it using this command:
`drizzle-kit generate --config=drizzle.config.ts`
but get the following error:
`node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/drizzle-studio/localhost-key.pem'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/user/Library/Application Support/drizzle-studio/localhost-key.pem'
}`

this how my drizzle.config.ts file looks like:
`export default defineConfig({
dialect: 'postgresql',
schema: './src/app/db/drizzle/schemas/alerts/*.ts',
out: './db/migrations',
dbCredentials: {
host: '127.0.0.1',
port: '5432',
user: 'events-engine',
password: 'local',
database: 'outbound',
ssl: false
},
schemaFilter: ['alerts'],
casing: 'snake_case',
migrations: {
schema: 'alerts',
table: 'migrations'
},
introspect: {
casing: 'camel',
},
verbose: true,
strict: true,
});`

any idea what might be the issue?

### Expected behavior

migration should pass successfully.

### Environment & setup

node 18 with nestjs 10.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.