Skip to content

fix: add missing migration for project header visibility fields

jedmund requested to merge hotfix/project-loading into main

Created by: jedmund

Summary

Fixes P0 production error where projects fail to load with:

Invalid `prisma.project.findMany()` invocation:
The column `Project.showFeaturedImageInHeader` does not exist in the current database.

Root cause: Commit 12d2ba1 added three Boolean fields to the Project model (showFeaturedImageInHeader, showBackgroundColorInHeader, showLogoInHeader) but no migration was created. The schema changed but the database did not.

Solution: This PR adds the missing migration file that creates the three columns with proper defaults (all true).

Test plan

  • Verify migration file SQL is correct
  • Merge to main
  • Deploy to Railway
  • Monitor Railway deployment logs to confirm migration applies successfully
  • Verify projects load without errors in production
  • Check that prisma migrate deploy shows this migration as applied

Merge request reports

Loading