Hugo
Hugo
Explore posts from servers
DTDrizzle Team
Created by Hugo on 9/28/2023 in #help
Mysql Syntax error executing query
No description
29 replies
DTDrizzle Team
Created by Hugo on 9/26/2023 in #help
Select Entry in db with relational tables
No description
24 replies
DTDrizzle Team
Created by Hugo on 9/15/2023 in #help
ForeignKey Too Long
Hi Drizzle Devs ! I would like to know if you are working on the functionnality to customize fk naming because i can't fully migrate because my foreign key is too long
4 replies
DTDrizzle Team
Created by Hugo on 9/15/2023 in #help
Drizzle workflow on schema modification
Hi, can someone explain me the process to follow when we modify the schema to push modifications to database please. I'm working on 2 computers, and when i modify schema like adding constraints, when i go to my second computer, i run drizzle-kit introspect:mysql and push:mysql but no modifications are added, also if i drop my table and recreate it with drizzle push:mysl, constraints are not added to my tables. I think feel verry dumb because i can't understand how to work with drizzle when we make modifications. also when i use generate:mysql there is no changes
7 replies
DTDrizzle Team
Created by Hugo on 9/11/2023 in #help
Is it good to use UUID as primary key ?
Hi, i want to define manually an id for my entry to be able to create at tame time a folder with same id. So using uuid can be a problem ? or maybe i have to get a normal id used for everything, and a uuid used to identify my entry in folders (for images) and for client supports ?
id_store: int("id_store").primaryKey().autoincrement(),
uuid: uuid("uuid").notNull(),
id_currency: int("id_currency").references(() => currencies.id_currency),
name: varchar("name", { length: 256 }),
id_store: int("id_store").primaryKey().autoincrement(),
uuid: uuid("uuid").notNull(),
id_currency: int("id_currency").references(() => currencies.id_currency),
name: varchar("name", { length: 256 }),
39 replies
DTDrizzle Team
Created by Hugo on 8/29/2023 in #help
Zod schema validation from Drizzle schema
4 replies
DTDrizzle Team
Created by Hugo on 8/27/2023 in #help
Get database informations inside 'use client' component
Hello, i would like to display categories from my database in my 'use client" component, how can i do ? i don't understand why i have this error when calling database: Module not found: Can't resolve 'net'
16 replies