RWOverdijk
RWOverdijk
DTDrizzle Team
Created by rcamf on 1/17/2025 in #help
Grant Privileges to Role
Because the only thing I can think of is manually adding this to migrations
3 replies
DTDrizzle Team
Created by rcamf on 1/17/2025 in #help
Grant Privileges to Role
Did you ever figure this out?
3 replies
DTDrizzle Team
Created by seth on 3/15/2025 in #help
Stack trace on constraint failed doesn't include my application code
I don’t know what’s going on with “defineEventHandler”. I’m on my phone so it’s hard to read. But event handlers, especially async ones, are easily detached. Could that be the issue?
11 replies
DTDrizzle Team
Created by seth on 3/15/2025 in #help
Stack trace on constraint failed doesn't include my application code
If not, maybe drizzle does. If also not that, some other reason the context is severed. Otherwise I am out of ideas sorry 😅
11 replies
DTDrizzle Team
Created by seth on 3/15/2025 in #help
Stack trace on constraint failed doesn't include my application code
So maybe you have a return statement somewhere before awaiting a promise? So you have a chain that finishes before your context is done.
11 replies
DTDrizzle Team
Created by seth on 3/15/2025 in #help
Stack trace on constraint failed doesn't include my application code
I haven't had this before, no. But usually this happens because it's being cut off by how the async chain is being handled.
11 replies
DTDrizzle Team
Created by seth on 3/15/2025 in #help
Stack trace on constraint failed doesn't include my application code
I don't have the answer, so I will be following along. But I am curious, are you using prepared statements by any chance?
11 replies
DTDrizzle Team
Created by ORACLE on 3/13/2025 in #help
cannot insert into column "id"
Makes it a lot easier to test
13 replies
DTDrizzle Team
Created by ORACLE on 3/13/2025 in #help
cannot insert into column "id"
Maybe make a minimal reproduction and create a new issue with it
13 replies
DTDrizzle Team
Created by ORACLE on 3/13/2025 in #help
cannot insert into column "id"
Super weird. It sounds similar to that issue, so maybe a regression? I can't see anything obviously wrong
13 replies
DTDrizzle Team
Created by Tobias on 3/14/2025 in #help
Serial sequence per tenant
More of a postgres question. But I think you'll need a trigger or per-tenant sequence. In your example either make it part of the application logic (max()+1) or use a trigger that does the same thing, just not in the app logic but instead in the database. Also, not what you asked, but I personally would not make this the primary key, but just an indexed column instead.
2 replies
DTDrizzle Team
Created by max on 3/13/2025 in #help
typescript error when trying to update a column
I would upvote that issue, and either try to find a fix or work around it for now. I agree that it sucks though, very annoying.
11 replies
DTDrizzle Team
Created by max on 3/13/2025 in #help
typescript error when trying to update a column
But cool that it is likely the same as the linked issue then. That means you at least know what is broken.
11 replies
DTDrizzle Team
Created by max on 3/13/2025 in #help
typescript error when trying to update a column
I mean, not cool for you of course
11 replies
DTDrizzle Team
Created by max on 3/13/2025 in #help
typescript error when trying to update a column
Cool
11 replies
DTDrizzle Team
Created by max on 3/13/2025 in #help
typescript error when trying to update a column
https://github.com/drizzle-team/drizzle-orm/issues/4219 from another question in here, seems the same.
11 replies
DTDrizzle Team
Created by xxgw on 3/12/2025 in #help
Why can't I insert fields that have already been defined in the table?
https://github.com/drizzle-team/drizzle-orm/issues/4219 from another question in here, seems the same.
6 replies
DTDrizzle Team
Created by Yuya on 3/14/2025 in #help
TypeError for nullable/optional fields
That's not a question, but it does seem related to two other questions on here. I suggest upvoting the issue and attempting to find a fix.
2 replies
DTDrizzle Team
Created by ORACLE on 3/13/2025 in #help
cannot insert into column "id"
13 replies
DTDrizzle Team
Created by ORACLE on 3/13/2025 in #help
cannot insert into column "id"
Code seems right to me. Are you on an old version perhaps?
13 replies