Skip to content

Drop legacy v2 event_photos table - #325

Merged
Flapjacck merged 4 commits into
mainfrom
307-drop-event-photos-and-location
Nov 30, 2026
Merged

Flapjacck merged 4 commits into
mainfrom
307-drop-event-photos-and-location

Conversation

@Flapjacck

Copy link
Copy Markdown
Member

Summary

  • move the admin poster flow to v2.events.poster_path and remove its legacy event_photos data API
  • apply the guarded production migration that drops v2.event_photos
  • regenerate the admin database types and refresh the v2 schema diagram from live metadata

Production validation

Before applying the migration, LCS-Site had:

  • 27 legacy cover rows
  • 0 non-cover event_photos rows
  • 0 mismatches between legacy cover paths and events.poster_path
  • no dependent v2 views or functions

The migration completed successfully on 2026-11-30. Post-migration verification confirms v2.event_photos is absent and events.poster_path remains present.

Scope

v2.events.location is intentionally retained. Although no existing in-person event depends only on it, the current admin/site code uses it as the fallback for an event without a selected building; removing it needs a separate reviewed migration and code change.

Checks

  • apps/admin: pnpm lint, pnpm test (616 tests), pnpm build
  • apps/site: pnpm test (235 tests), pnpm exec astro check, pnpm build

Closes #307

@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
admin_page Ready Ready Preview Nov 30, 2026 6:28pm UTC
better-website Ready Ready Preview Nov 30, 2026 6:28pm UTC

@Flapjacck
Flapjacck merged commit 80ef519 into main Nov 30, 2026
5 checks passed
@Flapjacck
Flapjacck deleted the 307-drop-event-photos-and-location branch November 30, 2026 18:33

This branch was successfully deployed

1 active deployment
Preview – better-website — 4bd34a83 Deployed Nov 30, 2026 by vercel[bot]
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.

Phase 3.2 [Backend]: Drop v2.event_photos once posters and photos are switched over

1 participant