drizzle-team / drizzle-team/drizzle-orm

[BUG]: Sanity checks during schema creation

Open
#272 2 comments 4 reactions 1 assignee Claimed by @AndriiSherman View on GitHub
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

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.