fix migration production
Build & Push / Pipeline Tests (push) Successful in 1m56s
Test / Type Check (all packages) (push) Successful in 55s
Build & Push / Build & Push Docker Image (push) Successful in 3m34s
Test / API Unit Tests (push) Successful in 1m12s
Test / Homepage Unit Tests (push) Successful in 49s
Test / Carplace Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Successful in 45s
Test / API Integration Tests (push) Successful in 1m6s

This commit is contained in:
root
2026-08-17 21:59:23 -04:00
parent 5f1c427600
commit 72671d146d
2 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -155,8 +155,8 @@ async function main() {
}
// Prisma records a failed transactional migration even after the SQL rolls back.
// In local/dev Docker that leftover row blocks every subsequent startup.
if (process.env.NODE_ENV === 'production') {
// That leftover row blocks every subsequent Docker/startup deploy.
if (process.env.DB_DEPLOY_SKIP_FAILED_RETRY === 'true') {
console.error('[db:deploy] Found failed migrations in a non-empty database. Resolve them manually before deploying again.')
process.exit(1)
}