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.

Open
#3,448 2 comments 0 reactions 0 assignees View on GitHub
bug drizzle/studio
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

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.