feat: enhance database migration handling and health check endpoint #4

Merged
Lars merged 1 commits from develop into main 2026-04-29 12:31:03 +02:00
Owner
  • 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.
- 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.
Lars added 1 commit 2026-04-29 12:30:55 +02:00
feat: enhance database migration handling and health check endpoint
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 1m55s
1f2c8ea0f1
- 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.
Lars merged commit 5334836207 into main 2026-04-29 12:31:03 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lars/shinkan-jinkendo#4
No description provided.