Blog
Database migrations that pass review and CI, then fail in production, and how to catch them before you merge.
-
The Prisma migration that passes CI and fails in production
Making a field required generates
SET NOT NULL. Review and CI pass; production’s nulls don’t. How to checkpg_statsfirst, and the pattern that doesn’t fail.