fix(blockchain-service): 添加 --accept-data-loss 参数

prisma db push 需要此参数来接受精度变更

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-25 18:28:23 -08:00
parent 1d817a5be2
commit 285465827d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ COPY --chown=nestjs:nodejs --from=builder /app/dist ./dist
RUN echo '#!/bin/sh\n\
set -e\n\
echo "Syncing database schema..."\n\
npx prisma db push --skip-generate\n\
npx prisma db push --skip-generate --accept-data-loss\n\
echo "Starting application..."\n\
exec node dist/main.js\n' > /app/start.sh && chmod +x /app/start.sh