- Updated migration logic in main.py to allow skipping migrations during local development with SKIP_DB_MIGRATE environment variable. - Improved error handling for migration failures, ensuring the application does not start if migrations are incomplete. - Added a new health check endpoint (/api/health/ready) to verify database connection and essential tables, aiding in production debugging. - Enhanced run_migrations.py to support ordered execution of migration files and improved transaction handling. - Updated requirements.txt to include sqlparse for SQL statement parsing when psql is unavailable. |
||
|---|---|---|
| .. | ||
| migrations | ||
| routers | ||
| scripts | ||
| auth.py | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| main.py | ||
| models.py | ||
| requirements.txt | ||
| run_migrations.py | ||
| smw_client.py | ||
| smw_mapper.py | ||
| version.py | ||