Skip to content

fix: missing comma in daily homepage migration CTE#432

Merged
Zheaoli merged 1 commit intomainfrom
fix/daily-homepage-migration-syntax
Mar 22, 2026
Merged

fix: missing comma in daily homepage migration CTE#432
Zheaoli merged 1 commit intomainfrom
fix/daily-homepage-migration-syntax

Conversation

@Zheaoli
Copy link
Copy Markdown
Collaborator

@Zheaoli Zheaoli commented Mar 22, 2026

Summary

  • Fix SQL syntax error (PostgreSQL 42601) in 20260322000000_add_daily_homepage migration
  • Missing comma between ranked_images and deduped_images CTEs caused deploy failure

Recovery steps

On the production database, before re-deploying:

pnpm prisma migrate resolve --rolled-back 20260322000000_add_daily_homepage
pnpm prisma migrate deploy

Test plan

  • Verify migration applies cleanly on a fresh database (pnpm prisma migrate deploy)
  • Verify daily_images materialized view is created with correct data
  • Confirm production recovery with migrate resolve + migrate deploy

🤖 Generated with Claude Code

The ranked_images CTE was missing a trailing comma before
deduped_images, causing a PostgreSQL syntax error (42601) on deploy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
picimpact Ready Ready Preview, Comment Mar 22, 2026 2:11pm

@Zheaoli Zheaoli merged commit ba2bf77 into main Mar 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant