Improve readability of data loss warnings when running migrate dev
#6056
Labels
kind/improvement
An improvement to existing feature and code.
team/schema
Issue for team Schema.
topic: cli
topic: prisma migrate dev
CLI: prisma migrate dev
Milestone
Problem
We currently display "There will be data loss" when displaying warnings as a headline, but this is not accurate.
The wording of the prompt is something we should correct. Warnings cover two things:
Yours is the second case (the unique constraint). Also note that currently, renaming a field is a lossy migration (we have plan for that in the near future). We can't differentiate this from "a field was removed, and a field with a different name was added".
Suggested solution
Replace the heading "There will be data loss:" with "Warnings:"
Additional context
Internal thread: https://prisma-company.slack.com/archives/CGMCB82N8/p1615322278013500
The text was updated successfully, but these errors were encountered: