Hello, I'm attempting to migrate my backend from ...
# orm-help
b
Hello, I'm attempting to migrate my backend from Sequelize to Prisma, and referring to this doc: https://www.prisma.io/docs/concepts/more/comparisons/prisma-and-sequelize The very first thing I'd like to do now that it's installed and is make Prisma the source for migrations. Even after running an introspection though, when I first run a migration, it seems like I MUST delete all my data in the postres DB. This is locally on dev by the way. Is there any way to do this without losing all my data?
k
@Bryson Kruk - You would probably define schema with field definitions and constraints as same as in Sequelize, create a migration(initial migration) with that schema, create a migration table in the database and record that migration manually, as if the migration is already executed.
❤️ 1
b
Thanks, this gives me something to work with. I appreciate the quick response
j