Remove --accept-data-loss from Dockerfile prisma db push
This flag allows Prisma to drop columns/tables when the schema changes, which risks data loss on production upgrades. Without the flag, Prisma will error instead of silently destroying data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -46,4 +46,4 @@ USER nextjs
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["sh", "-c", "npx prisma db push --accept-data-loss --skip-generate && npx prisma db seed && node server.js"]
|
CMD ["sh", "-c", "npx prisma db push --skip-generate && npx prisma db seed && node server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user