Project-Image-Uploader/backend/src/database
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
..
DatabaseManager.js feat: automatic preview generation on database init 2025-10-30 20:51:35 +01:00
schema.sql feat: add preview_path migration and constants 2025-10-30 20:30:56 +01:00