drizzle-team / drizzle-team/drizzle-orm
[Drizzle-kit Studio] When adding records on a database table and a not null constraint is violated no error message is shown.
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
I use postgres and in drizzle kit studio when wanting to add a row to this model without giving it a name the line just disappeared and showed no error in the frontend only in the console. It took me a minute to notice the problem.
A red alert when adding a new row fails would probably be helpful.
```
export const vereine = pgTable("verein", {
id: text("id").notNull().primaryKey().default("uuid_generate_v4()"),
name: text("name").notNull().unique(),
description: text("description"),
image: text("image"),
owner_id: text("owner_id").notNull().references(() => users.id),
// userType: text("userType"),
})```
Contributor guide
Assessment
This issue has not been assessed yet.