Project-Image-Uploader/backend/src
matthias.lotz 170e1c20e6 feat: automatic preview generation on database init
Task 7: Batch-Migration Automation
- Add generateMissingPreviews() method to DatabaseManager
- Automatically runs after schema creation
- Finds all images without preview_path
- Generates previews for existing images on startup
- Graceful error handling (won't break server start)
- Progress logging: 'Found X images without preview, generating...'
- No manual script needed - fully automated

Benefits:
- Works on every backend restart
- Incremental (only missing previews)
- Non-blocking database initialization
- Perfect for deployments and updates
2025-10-30 20:51:35 +01:00
..
database feat: automatic preview generation on database init 2025-10-30 20:51:35 +01:00
middlewares Initial Commit 2025-10-15 21:33:00 +02:00
models Initial Commit 2025-10-15 21:33:00 +02:00
repositories feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
routes feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
services feat: add preview_path migration and constants 2025-10-30 20:30:56 +01:00
utils feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
constants.js feat: integrate preview generation into upload flow 2025-10-30 20:41:06 +01:00
index.js Initial Commit 2025-10-15 21:33:00 +02:00
server.js Initial Commit 2025-10-15 21:33:00 +02:00