drizzle-team / drizzle-team/drizzle-orm
[BUG]: Sanity checks during schema creation
Open
drizzle/kit
enhancement
has-pr
- 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.21.1
### Describe the Bug
Common mistakes like two columns with the same names, should be caught early, during schema creation:
```
const users = pgTable('users', {
id: serial('id').primaryKey(),
fullName: text('id'), // id field created twice
});
```
This can happen pretty easily while copy-pasting lines of code.
Contributor guide
Assessment
This issue has not been assessed yet.