Dari
Explore posts from serversDTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
shall i open an issue?
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
@Andrew Sherman is this intended behaviour or a bug?
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
Found the issue.
The columns need to be in the correct order.
So it worked as soon as I changed it to:
12 replies
DTDrizzle Team
•Created by Dari on 10/11/2024 in #help
Resolved: Need help with my multi column primary and foreign key table
The first db push works fine.
On a second call without any changes it still tries to "alter" the table.
First db:push:
Second db:push:
Any suggestions?
I've tried defining the foreign key with the foreignKey function and directly in the schema field with
.references()
. Same result12 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
btw drizzle rollsback automatically if any error is thrown within the transaction function.
So you wouldn need to try catch and if an error occurs it should rollback as expected
11 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
Try this, I think it should fix it.
11 replies
DTDrizzle Team
•Created by brettlyc on 9/19/2024 in #help
transaction is not defined
transaction
does not return the transaction. Instead it provides the transaction within the lambda function.
So it definetly needs a function which executes within the transaction.
Something like this:
Basically you need to wrap the code with
Hope that helps 🙂11 replies
DTDrizzle Team
•Created by Dari on 7/3/2024 in #help
Drizzle Push to Turso fails on third attempt
Wow that solved it. Thank you very much!
3 replies