0

I am Working on Twitter-Clone, where I am facing issue on Twitter-server side while implementing Prisma. more details- when I am trying to create a dataBase table of MODEL USER in schema.prisma and trying to connect it with superBase by running "npx prisma migrate dev --name added_user_model" command then this goes under processing but does not execute as it has to be.

As you can see in the terminal, the command is running and it keep on process like this only.

Screenshot

What I have tried?

  • I have rechecked the DATABASE_URL from SUPERBASE it also right,
  • I have installed the prisma/client and all prisma's dependencies.
  • I have checked and asked to chatGPT also but I am not getting my solution. Expecting: After running that command a folder of migration should be created in prisma folder and migration must connect schema to superbase and create a USER MODEL table there. As you can see in this screenshot, this is how the command should work.

Screenshot

4
  • 1
    Please include relevant code and errors in the question, formatted appropriately 👍🏻 Commented Jun 21, 2024 at 4:15
  • Actually it shows no error in my system, just it is kept on rendering this command but not executing it... @DaveNewton As i have also attached screenshot of the problem and and expecting result both Commented Jun 21, 2024 at 4:20
  • 1
    Please include relevant code and errors in the question, formatted appropriately. Commented Jun 21, 2024 at 6:06
  • What is your error? Let it run it takes awhile sometimes Commented Jun 27, 2024 at 2:04

2 Answers 2

1

This here is the corrected host for your Postgres URL, you need to change the "6589" in your host to "5432". Another method is for you to change your pooler mode from "Transaction" to "Session" before copying your URL from superBase. You can use this link for reference.

Sign up to request clarification or add additional context in comments.

1 Comment

Had the same issue and changing the port from "6542" to "5432" worked. Thanks
0

For me changing the DATABASE_URL to DIRECT_URL in schema.prisma worked.

1 Comment

This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.