tornros
04/14/2022, 6:22 AMJoël
#!/bin/bash
export DATABASE_URL="<postgres://prisma:prisma@localhost:5432/playground5>"
$(npx prisma migrate deploy > /dev/null 2>&1); echo $?
It will return 1 (exit code = error) for example for
1 migration 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 `20220408121721_first` migration started at 2022-04-14 08:25:43.542266 UTC failed with the following logs:
Joël
tornros
04/14/2022, 7:34 PM