tyler4949
Explore posts from serversPPrisma
•Created by tyler4949 on 2/16/2025 in #help-and-questions
Backing up data with Prisma Postgres
Update: I ended up solving this using a similar approach to the guide of restoring prisma postgres with another postgres db: https://www.prisma.io/docs/getting-started/prisma-postgres/import-from-existing-database-postgresql. I just used
pg_dump
once the TCP tunnel was started4 replies
PPrisma
•Created by tyler4949 on 2/9/2025 in #help-and-questions
ConnectorError after moving to Prisma Postgres
@Nurul (Prisma) looks like that did the trick, thank you so much!
10 replies
PPrisma
•Created by tyler4949 on 2/9/2025 in #help-and-questions
ConnectorError after moving to Prisma Postgres
Ah I didnt see this as part of the setup docs, thank you. I will try that
10 replies
PPrisma
•Created by tyler4949 on 2/9/2025 in #help-and-questions
ConnectorError after moving to Prisma Postgres
I am still getting the same issue with that though
10 replies
PPrisma
•Created by tyler4949 on 2/9/2025 in #help-and-questions
ConnectorError after moving to Prisma Postgres
@Nurul I did update to
6.3.0
as part of the Prisma Postgres setup steps. I ran the following command: npm install prisma @prisma/client@latest @prisma/extension-accelerate
. Sorry, these changes are on my local, I havent pushed these up yet. I just wanted to share my prisma schema with you as a reference because that hasnt changed10 replies
PPrisma
•Created by tyler4949 on 2/9/2025 in #help-and-questions
ConnectorError after moving to Prisma Postgres
Hi @Nurul! Thank you for the response. It looks like I am able to delete a User just fine. When I try to delete the recipe is the issue though. I also get the recipe delete error in Prisma Studio. Let me know if you need any other info!
10 replies
TTCTheo's Typesafe Cult
•Created by tyler4949 on 12/24/2024 in #questions
shadcn Dialog - "submit" vs "cancel"
I forgot to mention I am also adding the item to a list behind the scenes (so it can be tracked in the field array of the form - using tanstack form) that I also have to remove if I "cancel" the modal in addition to clearing the form.
I did find these toggles in the radix docs, which solves the problem:
These are on the
DialogContent
instead of the Dialog
which is why I missed it. I appreciate your thoughts though. I actually like the approach of only executing certain logic based on the onOpenChange value. I will look into that approach as well6 replies
TTCTheo's Typesafe Cult
•Created by tyler4949 on 12/24/2024 in #questions
shadcn Dialog - "submit" vs "cancel"
I have this post on the github for more info: https://github.com/shadcn-ui/ui/discussions/5588
6 replies
PPrisma
•Created by sommeeeR on 4/11/2024 in #help-and-questions
Get the next date with prisma
My suggestion was high level, not exact code for your solution
10 replies
PPrisma
•Created by sommeeeR on 4/11/2024 in #help-and-questions
Get the next date with prisma
Then you’re probably good. I was just trying to convey it should be UTC time (or the same timezone as your db)
10 replies
PPrisma
•Created by sommeeeR on 4/11/2024 in #help-and-questions
Get the next date with prisma
That was just assuming you stored your dates in UTC in the db
10 replies
PPrisma
•Created by sommeeeR on 4/11/2024 in #help-and-questions
Get the next date with prisma
Probably makes sense to add that to your query, right? Something like this:
10 replies
PPrisma
•Created by tyler4949 on 4/11/2024 in #help-and-questions
P3005 Error running Prisma migrate
Update: I ran the suggested commands on the baselining docs and while this worked I lost all the data in my db. This is not a huge deal because it was just test data while I learn Prisma, but how can I ensure this doesn't happen again as my project scales?
Also, following the steps in the docs didnt regenerate a new
migration_lock.toml
file. This is also an issue, correct?2 replies
TTCTheo's Typesafe Cult
•Created by tyler4949 on 1/13/2024 in #questions
Update local data from useQuery
Will take a look
8 replies
TTCTheo's Typesafe Cult
•Created by tyler4949 on 1/13/2024 in #questions
Update local data from useQuery
Thank you!
8 replies
TTCTheo's Typesafe Cult
•Created by Derock on 4/16/2023 in #questions
NextAuth "[next-auth][error][JWT_SESSION_ERROR]" (CredentialsProvider)
Hey @Derock how did you get a valid
user
passed into the session()
callback? I was getting the same error and found your post and making the jwt()
callback fixed the error (thanks!) but by the time the user
gets to the session()
callback to set the custom field like you did, I am getting an undefined
user. Did you run into this?10 replies
TTCTheo's Typesafe Cult
•Created by tyler4949 on 12/20/2023 in #questions
Adding custom value to NextAuth session - [next-auth][error][JWT_SESSION_ERROR]
In case you wanna bump the issue with me or share this in case someone asks in the future: https://github.com/nextauthjs/next-auth/discussions/9438. Seriously apprecaite your help @Josh
44 replies