mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-18 04:08:48 -05:00
427074398c
- Refactor migrations with idempotency checks and better error handling * Add SQLAlchemy inspector checks for table/column existence * Improve error messages and handling for schema operations * Make migrations safe to run multiple times * Update 27 migration files with enhanced error handling patterns - Add missing schema columns via new migrations * Migration 095: Add ui_show_issues column to users table * Migration 096: Add portal_issues_enabled column to clients table - Enhance Settings model error handling * Improve detection of schema errors (table/column missing) * Better handling of SQLAlchemy exceptions during migrations * More comprehensive error checking for OperationalErrors - Fix database auto-switching logic in app initialization * Respect explicit DATABASE_URL setting to prevent unwanted switches * Only auto-switch to PostgreSQL when not explicitly configured - Update docker entrypoint script with migration improvements