Eternal Mori
Explore posts from serversDTDrizzle Team
•Created by Eternal Mori on 3/16/2024 in #help
drizzle-kit push error: Multiple primary key defined
My database and table in this example are using MariaDB with collation: utf8mb4_general_ci.
When I use MySQL with utf8mb4_0900_ai_ci I dont experience this error.
3 replies
DTDrizzle Team
•Created by Dustin@WunderGraph on 7/12/2023 in #help
How to do conditional joins with the query builder?
All equels with a undefined value are ignored
18 replies
DTDrizzle Team
•Created by Dustin@WunderGraph on 7/12/2023 in #help
How to do conditional joins with the query builder?
Here is a where clause with conditional params:
18 replies
DTDrizzle Team
•Created by Eternal Mori on 7/12/2023 in #help
How to implement a where clause on a joined table with the new relation builder?
Now I created almost an indentical output with the new builder. But now the problem is that I dont know how to filter on a joined table. in this example on "ticket.channel.organizationId". That part is missing here. How can I implement the filter?
4 replies
DTDrizzle Team
•Created by Eternal Mori on 7/3/2023 in #help
Broken typescript in select
I fixed it, it was because I used a dynamic db connection:
3 replies
DTDrizzle Team
•Created by eatmoose on 6/2/2023 in #help
Auto update timestamp fields
Planetscale advices to update these values on app level, because if you use mysql functions like: "NOW()" or "CURRENT_TIMESTAMP()" they will use the mysql server time and timezone. If you want to use the timezone of your own app. set these values at app level.
My Schema TS file:
When creating my record:
When updating:
17 replies