asteroid/migrations
glenneth 8f5fe7534d feat: Add avatar upload and fix authentication errors
Avatars:
- Add avatar_path column to USERS table (migration 006)
- Upload API endpoint /api/asteroid/user/avatar/upload
- Profile page shows avatar with hover-to-change overlay
- Default SVG avatar for users without uploaded image
- Avatars stored in static/avatars/ directory

Fixes:
- 401 errors now return proper JSON instead of 500
- SQL escaping for history recording (single quotes)
- Added debug logging for history/record API
- Avatar container has background color for visibility

For production: run migrations/006-user-avatars.sql
2025-12-21 09:07:56 +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
006-user-avatars.sql feat: Add avatar upload and fix authentication errors 2025-12-21 09:07:56 +03:00