WaspW
Wasp16mo ago
mb23

Deploying Migration fails

During the server build process, I keep getting this error message:
server@0.0.0 db-migrate-prod
prisma migrate deploy --schema=../db/schema.prisma

Prisma schema loaded from ../db/schema.prisma
Datasource "db": PostgreSQL database "railway", schema "public" at "monorail.proxy.rlwy.net:44462"

38 migrations found in prisma/migrations

Error: P3009

migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
The 20240827213607_27082024 migration started at 2024-08-28 04:47:15.491352 UTC failed


Somehow, yesterday's migration failed and now, I don't really know how to remove this migration. I've already created a new migration and on my local machine, everything works fine. Only if I want to deploy to Railway, I got this error message.
Was this page helpful?