mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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:
4
.github/workflows/gated-deployment.yml
vendored
4
.github/workflows/gated-deployment.yml
vendored
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user