Skip to content

Rename field in Prisma 2 without data loss #2323

Answered by ryands17
OliverEvans96 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @OliverEvans96 👋

Currently there's an open issue for this workflow to be implemented which you can track here

As a workaround for now, you would have to

  1. Create a new field and migrate
  2. Seed the data from the old to the new field
  3. Delete the old field and migrate

Let me know if that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OliverEvans96
Comment options

Answer selected by OliverEvans96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants