drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: `drizzle-kit migrate` should log the migrations being applied

Open
#4,422 2 comments 16 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Feature hasn't been suggested before.

- [x] I have verified this feature I'm about to request hasn't been suggested before.

### Describe the enhancement you want to request

Here are the logs I get from `npx drizzle-kit migrate`. It doesn't tell me which migrations were run.

```
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/pine/Code/hm-all/hm-new/drizzle.config.ts'
Using 'postgres' driver for database querying
[⢿] applying migrations...{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P06',
message: 'schema "drizzle" already exists, skipping',
file: 'schemacmds.c',
line: '132',
routine: 'CreateSchemaCommand'
}
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P07',
message: 'relation "__drizzle_migrations" already exists, skipping',
file: 'parse_utilcmd.c',
line: '207',
routine: 'transformCreateStmt'
}
```

Would be great if it can print something like

```
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/pine/Code/hm-all/hm-new/drizzle.config.ts'
Using 'postgres' driver for database querying
[⢿] applying migrations
- 0030_oval_spyke
- 0031_wide_the_twelve
```

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.