zsh — hocein@dev:~/loading
hocein@dev:~$ fetch --page
loading route
loading route
// dev log
A safe playbook for shadow databases, expand-and-contract schemas, and rollbacks you'll actually trust.
Prisma spins up a shadow database to diff the migration against the actual schema, so a broken migration is caught before it touches production data.
Additive changes ship first: create the new column or table, backfill it, then deploy. Destructive changes wait — drop the old column only after nothing references it anymore.
Every migration is a versioned, inspectable file. Rolling back means applying the previous file, not reverse-engineering a state you can no longer see.