- 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.
14 lines
343 B
Plaintext
14 lines
343 B
Plaintext
fastapi==0.111.0
|
|
uvicorn[standard]==0.29.0
|
|
anthropic==0.26.0
|
|
python-multipart==0.0.9
|
|
Pillow==10.3.0
|
|
aiofiles==23.2.1
|
|
pydantic==2.7.1
|
|
bcrypt==4.1.3
|
|
slowapi==0.1.9
|
|
psycopg2-binary==2.9.9
|
|
python-dateutil==2.9.0
|
|
tzdata>=2024.1 # ZoneInfo (Europe/Berlin) auch unter Windows
|
|
sqlparse>=0.5.0 # Migrationen: Statements splitten (Fallback ohne psql)
|