akshay bagade
akshay bagade

Reputation: 1219

postgreSQL's prisma deploy command

I am using Nodejs, graphQl, Prisma, docker and PostgreSQL, whenever I change Schema the I have to deploy it, but it gives error as follow

ERROR: You can not deploy to a service stage while there is a deployment in progress or a pending deployment scheduled already. Please try again after the deployment finished

"code": 4008,

"status": 200

then I wait for a few minutes and try again the result is same, I tried a lot but the result is same

Upvotes: 3

Views: 503

Answers (1)

Harshit Pant
Harshit Pant

Reputation: 498

This happens when there is an unapplied migration in the management schema.

To resolve this follow the following steps:

  1. Connect to your database using a GUI(like tableplus.io))

  2. Change your database schema to management schema

    image|268x71

  3. Goto the migration table

    image|189x59

  4. Delete the last row

image|690x53

Then try to redeploy your service.

Upvotes: 3

Related Questions