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 |
||
|---|---|---|
| .. | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| package.json | ||