2026-05-22frontend
`music_url` column and audio playback added to posts
- Change:
music_url TEXTcolumn added to thepoststable (viaALTER TABLE … ADD COLUMN IF NOT EXISTS).Posttype extended. Waveform seekbar (waveform-seekbar.tsx) and in-viewer audio playback added to the fullscreen viewer. - Why: Support music posts alongside image posts.
- Affected Modules:
app/lib/actions.ts,app/_component/fullscreen-viewer.tsx,app/_component/waveform-seekbar.tsx - Trade-offs:
- Pro: Single
poststable covers both image and music post types with nullable columns. - Con: Schema changes are still managed with hand-written
ALTER TABLE … ADD COLUMN IF NOT EXISTSinsideensurePostsTable()rather than Prisma migrations; thepostsPrisma model does not includemusic_url, creating a schema drift between Prisma and the raw SQL layer.
- Pro: Single