hi :wave: I am trying to migrate some of my code...
# orm-help
m
hi 👋 I am trying to migrate some of my code from
2.12.1
to
2.29.1
and have trouble with migrations. I am following the guide with deleting legacy migrations and making a base one as the starting point but the CLI wants to wipe the database. I am a bit scared of what is going on. Is there a migration guide that I could follow or someone who could help me with it?
r
@matic 👋 You need to follow this tutorial from the docs. Here you need to reset your development environment (required) by running
prisma migrate dev
so that it creates the migrations. For production you can use baselining to say that the given migration is applied. This will incur no data loss.
m
@Ryan do I need to have populated local development environment or can it be just an empty database?
r
It can be empty.