Nick Foden
09/29/2021, 2:40 AMprisma migrate dev
errored, but seems it is somewhat applied and now I have a drift scenario and a schema annotated with these new foreign keys etc. Is there command to rollback last migration on database? Been reading the docs and searching around. I can't lose this database. Worst case - thought is to export with mysql workbench or such and then take the platform offline and baseline / seed it with the backup maybe. But that is rough is will be a lot of time.Ryan
09/29/2021, 6:35 AMNick Foden
09/29/2021, 1:52 PMNick Foden
09/29/2021, 1:53 PMNick Foden
09/29/2021, 1:54 PMnpx prisma migrate dev
3. broken / half applied a migration and now have schema driftNick Foden
09/29/2021, 1:56 PMRyan
09/29/2021, 2:01 PMNick Foden
09/30/2021, 12:59 PMdo4gr
Nick Foden
02/18/2022, 1:26 PM"@prisma/client": "^2.30.3",
• "prisma": "^2.30.3",
Because I can't risk having drift that ends up with us nuking everything again. That was miserable experience before and thankfully had low user activity that morning and we were able to roll back to a backup within an hour.
This looks helpful migrate diff
and will figure out a good time:
• take platform offline
• do full copy/backup
• attempt migrationdo4gr