drizzle-team / drizzle-team/drizzle-orm
[FEATURE - Drizzle Seed]: Support for `restart identity` when resetting a database
Open
drizzle/seed
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
Currently, Drizzle doesn't support this directly and just using `cascade` option:
https://github.com/drizzle-team/drizzle-orm/blob/04c91434c7ac10aeb2923efd1d19a7ebf10ea9d4/drizzle-seed/src/index.ts#L493
but in many cases you may also want to reset sequences, especially when combining `reset` and `seed` features together, since seeding often relies on specific sequences.
Contributor guide
Assessment
This issue has not been assessed yet.