:wave: I’m trying to upgrade from version 2.5.1 to...
# orm-help
d
👋 I’m trying to upgrade from version 2.5.1 to 2.16.1, really just for the group by query. But in order to do that, I have to switch from using legacy migrations to new migrations. If I don’t delete the old migrations folder and I run
prisma migrate dev --create-only --preview-feature
, I get
Copy code
Error: The migrations folder contains migration files from an older version of Prisma Migrate which is not compatible.
if I do delete them I get
Copy code
Do you want to continue? All data will be lost.
Any way to upgrade without deleting all of my data???
k
As I have seen here

https://www.youtube.com/watch?v=0LKhksstrfg&ab_channel=Prisma

the data on dev will be deleted. So you should take a backup first and think of Seeding it back. https://www.prisma.io/docs/guides/prisma-guides/seed-database