drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Add timestamp mode option to drizzle.config.ts
Open
drizzle/kit
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
Add ability to set `mode` to `date` instead of `string` for `timestamp` columns when creating DB schemas using Drizzle within the `drizzle.config.ts`. Currently, you have to modify the output file to change the `mode` to `date` manually after the fact.
e.g.
```
created_at: timestamp({withTimezone: true, mode: "date"}),
```
Contributor guide
Assessment
This issue has not been assessed yet.