stephen
Explore posts from serversDTDrizzle Team
•Created by stephen on 4/15/2024 in #help
Query `with` returning no results?
(the reason the IDs don't match is that I create a fresh database for every test.
5 replies
DTDrizzle Team
•Created by stephen on 4/15/2024 in #help
Query `with` returning no results?
When I console log the
foundRecipes
, however, I see:
5 replies
DTDrizzle Team
•Created by stephen on 4/15/2024 in #help
Query `with` returning no results?
Here's me proving that the tag is associated.
5 replies
DTDrizzle Team
•Created by hacktographer on 8/25/2023 in #help
How are you all seeding your database?
For some reason if your use esbuild-register and had an error, you can try use tsx instead:😂
11 replies
DTDrizzle Team
•Created by stephen on 3/21/2024 in #help
Schema is "wrong" resulting in "foreign key mismatch" error
My questions:
1. Should drizzle error if I don't have the correct relations?
2. If I find that I have a missing relation, what's the proper order of operations for that to get picked up by the schema generation to create a migration?
3. Is there a way to "force" this change to occur?
4 replies
DTDrizzle Team
•Created by stephen on 3/21/2024 in #help
Schema is "wrong" resulting in "foreign key mismatch" error
4 replies
DTDrizzle Team
•Created by stephen on 3/21/2024 in #help
Schema is "wrong" resulting in "foreign key mismatch" error
I found this SO thread (https://stackoverflow.com/questions/6848608/sqlite-foreign-key-mismatch-error), and tried adding this to my
menuRecipesRelations
:
Getting this to be picked up when I run db:gen
, however, is challenging.
4 replies
DTDrizzle Team
•Created by hacktographer on 8/25/2023 in #help
How are you all seeding your database?
Okay, so I was able to solve this by using
tsx
instead of ts-node
. Not sure why.11 replies
DTDrizzle Team
•Created by hacktographer on 8/25/2023 in #help
How are you all seeding your database?
I found this follow up video (https://www.youtube.com/watch?v=n9rtLhMN3cc). I have a very similar approach, but am struggling with actually getting the script to run and i"m curious if others have solved this.
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
(I was looking at the wrong table's relations ... 😬 )
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
yup! i got it! 😅
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
i think i see it 🤦♀️
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
jk
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
Thanks! Now I'm trying to follow the pattern for a
many-to-many
and am getting stuck.11 replies
DTDrizzle Team
•Created by stephen on 3/15/2024 in #help
Studio: Not Enough Info to Infer Relation
thanks @solo ! i think i've got dozens of these relations configured incorrectly it seems... can you point me to the docs where i might learn more about this second argument?
11 replies
DTDrizzle Team
•Created by stephen on 3/13/2024 in #help
Creating migrations with Enums present (postgres)
that's such an easy fix! ha!
3 replies