Drizzle TeamDT
Drizzle Team15mo ago
1 reply
neural

Update column ONLY enabled when column is set as NOT NULL #3666

TL;DR:
//
Sharing this on Discord to find some help and explanation about the title.

After the first problem that started as a discussion on github and not get any attention, I'm trying to reach you guys through discord.

Work well on local, dev and probably will work in production, it seems to be a issue because why should I write a schema that is not equal to my db?!

Now with
pglite
it is more incisive and I should write another schema just to fulfill my e2e test.
//

https://github.com/drizzle-team/drizzle-orm/discussions/3666

Hope someone can help me with that!
GitHub
This behavior is expected? Because, I'm only enable to set some field like lastLoginAt when .notNull() is setted in schema, but in my case the column should be able to: NULL: when we insert NEW...
Update column ONLY enabled when column is set as NOT NULL · drizzle...
Was this page helpful?