feat: Add cover art support and auto-migration
- Extract cover art from MP3s during upload - Display cover art in game result screens (win/loss) - Add coverImage field to Song model - Add migration script to backfill covers for existing songs - Configure Docker to run migration script on startup
This commit is contained in:
@@ -14,6 +14,6 @@ services:
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./public/uploads:/app/public/uploads
|
||||
# Initialize DB if needed
|
||||
# Initialize DB if needed and run migration
|
||||
command: >
|
||||
sh -c "npx -y prisma@6.19.0 db push && node server.js"
|
||||
sh -c "npx -y prisma@6.19.0 db push && node scripts/migrate-covers.mjs && node server.js"
|
||||
|
||||
Reference in New Issue
Block a user