Final code review improvements

- Use 'prisma/config' import (re-export from @prisma/config for better compatibility)
- Change workflow condition from always() to failure() for proper job triggering
- Fix migration rollback command syntax with proper schema path
- All changes verified and tested successfully

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-27 16:44:41 +00:00
parent bb25361c97
commit 23d01a0b11
2 changed files with 3 additions and 3 deletions

View File

@@ -460,7 +460,7 @@ jobs:
runs-on: ubuntu-latest
needs: [pre-deployment-validation, deploy-production]
if: |
always() &&
failure() &&
(needs.pre-deployment-validation.result == 'failure' || needs.deploy-production.result == 'failure')
steps:
- name: Determine failure stage
@@ -580,7 +580,7 @@ jobs:
1. **Re-run workflow** with previous stable commit SHA
2. **OR use manual rollback:**
- Rollback specific migration: \`npx prisma migrate resolve --rolled-back <migration_name>\`
- Rollback specific migration: \`npx prisma migrate resolve --rolled-back MIGRATION_NAME --schema=prisma/schema.prisma\`
- Deploy previous Docker image/build
- Restore from pre-deployment backup if needed
- ⚠️ Avoid \`prisma migrate reset\` in production (causes data loss)

View File

@@ -4,7 +4,7 @@
* This file replaces the deprecated package.json#prisma configuration.
* See: https://www.prisma.io/docs/orm/reference/prisma-config-reference
*/
import { defineConfig } from '@prisma/config'
import { defineConfig } from 'prisma/config'
export default defineConfig({
// Schema is in the repo root prisma/ directory