Error: P3006Migration `0_init` failed to apply cleanly to the shadow database. Error code: P1001Error:Can't reach database server at `192.168.1.228:5432`Please make sure your database server is running at `192.168.1.228:5432`.
Error: P3006Migration `0_init` failed to apply cleanly to the shadow database. Error code: P1001Error:Can't reach database server at `192.168.1.228:5432`Please make sure your database server is running at `192.168.1.228:5432`.
However, the DB is reachable—
npx prisma db pull
npx prisma db pull
works fine.
---
What I Tried
* Set a valid
shadowDatabaseUrl
shadowDatabaseUrl
→ no change * Tried
migrate resolve --rolled-back
migrate resolve --rolled-back
and
--applied
--applied
* Tested with a minimal DB → same error * Confirmed PostgreSQL user is a superuser * Not running in Docker → not a container issue