fix(planting-service): 移除 Dockerfile 中的 db push 回退逻辑

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 05:47:46 -08:00
parent 500e4381a6
commit 7ce71ad27b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ COPY templates ./templates/
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 "Running database seed..."\n\
npx prisma db seed || echo "Seed completed (or already seeded)"\n\
echo "Starting application..."\n\