fix: replace prisma migrate deploy with db push in CI pipeline
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 41s

prisma migrate deploy requires pre-generated migration files which won't
exist when schema is edited directly. db push syncs schema directly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-24 20:31:22 +08:00
parent 75f8dd27e7
commit b81b7fba92

View File

@ -59,10 +59,10 @@ jobs:
echo "[deploy] No failed migrations found" echo "[deploy] No failed migrations found"
fi fi
- name: Run database migrations - name: Sync database schema
run: | run: |
cd /tmp/api-server cd /tmp/api-server
npx prisma migrate deploy npx prisma db push --skip-generate
- name: Deploy NestJS API - name: Deploy NestJS API
run: | run: |