Skip to content

Improve readability of data loss warnings when running migrate dev #6056

@albertoperdomo

Description

@albertoperdomo

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:

  • Potentially destructive operations
  • Operations that may fail

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions