palid
WWasp
•Created by jason on 1/6/2025 in #đŸ™‹questions
I messed up my db migrations...
generally you should have seeding scripts for your development, so that you can safely just reset your entire db instead of "rolling back" a migration, as you might be left with a very weird database state. And then you need to test not only your up migrations, but also down migrations, to make sure that you do not leave the database unsynced
12 replies
WWasp
•Created by jason on 1/6/2025 in #đŸ™‹questions
I messed up my db migrations...
There's no good way to rollback a prisma migration, see: https://www.prisma.io/docs/orm/prisma-migrate/workflows/generating-down-migrations
12 replies
WWasp
•Created by jason on 1/6/2025 in #đŸ™‹questions
I messed up my db migrations...
@jason it's a problem with Prisma, not wasp, that it doesn't really have good down migrations.
12 replies