From f7d6f23b78167f5671732aa95d6387db2e63cec9 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 23 Nov 2025 06:05:42 -0800 Subject: [PATCH] fix: add missing migration for project header visibility fields Fixes P0 production error where projects failed to load due to missing database columns. The schema was updated in commit 12d2ba1 to add three Boolean fields (showFeaturedImageInHeader, showBackgroundColorInHeader, showLogoInHeader) but no migration was created. This migration adds the missing columns to the Project table with their proper defaults (all true), resolving the "column does not exist" error in production. --- .../migration.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 prisma/migrations/20251123000000_add_project_header_visibility_fields/migration.sql diff --git a/prisma/migrations/20251123000000_add_project_header_visibility_fields/migration.sql b/prisma/migrations/20251123000000_add_project_header_visibility_fields/migration.sql new file mode 100644 index 0000000..f343488 --- /dev/null +++ b/prisma/migrations/20251123000000_add_project_header_visibility_fields/migration.sql @@ -0,0 +1,4 @@ +-- AlterTable +ALTER TABLE "Project" ADD COLUMN "showFeaturedImageInHeader" BOOLEAN NOT NULL DEFAULT true, +ADD COLUMN "showBackgroundColorInHeader" BOOLEAN NOT NULL DEFAULT true, +ADD COLUMN "showLogoInHeader" BOOLEAN NOT NULL DEFAULT true;