philbookst
Explore posts from serversDTDrizzle Team
β’Created by philbookst on 5/11/2023 in #help
DatabaseError: Duplicate column name 'id'
i'm sorry i don't quite remeber, it was almost a year ago
i do remeber printing out the raw sql and asking chatgpt whats wrong π
5 replies
DTDrizzle Team
β’Created by philbookst on 12/20/2023 in #help
push:sqlite error _old_push table with turso
yes i think i also had this error sometimes
6 replies
DTDrizzle Team
β’Created by philbookst on 12/20/2023 in #help
push:sqlite error _old_push table with turso
I donβt think so π΅βπ«
6 replies
DTDrizzle Team
β’Created by thdxr on 7/12/2023 in #help
0.27.2 mysql:push
it deleted the dummy constraint when trying db:push
26 replies
DTDrizzle Team
β’Created by thdxr on 7/12/2023 in #help
0.27.2 mysql:push
I think you can use any schema with uniqueIndex added
Here is my schema for the failing table as reference though:
i've played with adding a dummy constraint
ALTER TABLE Account ADD CONSTRAINT Account_userId_key CHECK (LENGTH(id) > 0);
which fixed the error for Account_userId_key
but then a new error for Account_passwordResetToken_key
popped up26 replies
DTDrizzle Team
β’Created by thdxr on 7/12/2023 in #help
0.27.2 mysql:push
i got the same problem, did you find a fix for it or do we need to wait for a new version?
26 replies
DTDrizzle Team
β’Created by philbookst on 5/11/2023 in #help
uuid missing in drizzle-orm/mysql-core?
i use
varchar("id", { length: 191 }).primaryKey().notNull()
for most tables and then just generate the id via crypto.randomUUID()
on the server side for my insert statements12 replies
DTDrizzle Team
β’Created by philbookst on 5/30/2023 in #help
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020
fixed in v0.26.3!
2 replies
DTDrizzle Team
β’Created by philbookst on 5/11/2023 in #help
uuid missing in drizzle-orm/mysql-core?
oh ok! what is the alternative that i could use?
do you happen to know what prisma does, do they just do a plain
crypto.randomUUID()
as a fallback?12 replies
DTDrizzle Team
β’Created by philbookst on 5/11/2023 in #help
Need help transform a nested prisma query to drizzle
oh that's sad, but at the end of the day not a big problem - thank you!
4 replies