fix(identity-service): 移除 db push 回退,只用 migrate deploy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-04 03:33:58 -08:00
parent 613d822c46
commit 6e53a4a572
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ COPY --from=builder /app/dist ./dist
RUN echo '#!/bin/sh\n\
set -e\n\
echo "Running database migrations..."\n\
npx prisma migrate deploy || npx prisma db push --accept-data-loss\n\
npx prisma migrate deploy\n\
echo "Starting application..."\n\
exec node dist/src/main.js\n' > /app/start.sh && chmod +x /app/start.sh