asteroid/migrations
glenneth 7600ea6bed feat: Add listening history tracking and fix favorites
Listening History:
- Auto-record tracks when they change (logged-in users only)
- Track stored by title (no tracks table dependency)
- Profile page shows real recent tracks, top artists, listening stats
- APIs: /api/asteroid/user/history, /user/listening-stats, /user/recent-tracks, /user/top-artists

Favorites Fixes:
- Remove favorite now uses title instead of track-id
- Fixed response parsing to show green success message
- Profile page remove button works correctly

Migration Script Updated:
- track_title column added to both tables
- track-id now optional (nullable)
- Unique index on (user-id, track_title)
- No foreign key to tracks table (title-based storage)

For production: run migrations/005-user-favorites-history.sql
2025-12-21 08:35:35 +03:00
..
002-listener-statistics.sql Add city-level tracking to geo stats 2025-12-12 13:55:55 -05:00
003-timestamp-consistency.sql Fix timestamp consistency across all tables 2025-12-10 11:11:32 -05:00
004-playlist-schedule.sql feat: Add database persistence and editable UI for playlist schedule 2025-12-17 20:48:07 -05:00
005-user-favorites-history.sql feat: Add listening history tracking and fix favorites 2025-12-21 08:35:35 +03:00