Files
ciaovolo/flight-comparator/database
domverse 4f4f7e86d1
All checks were successful
Deploy / deploy (push) Successful in 12s
fix: make migrations resilient to orphaned scans_new tables
- Add _recover_orphaned_new_tables() called at DB init startup: if scans_new
  exists but scans doesn't (from a previously aborted migration), rename it back
- Drop VIEW recent_scans/active_scans before dropping the scans table in both
  _migrate_add_pause_cancel_status and _migrate_add_reverse_scan_support, so
  executescript can cleanly recreate them
- Add DROP TABLE IF EXISTS scans_new / scheduled_scans_new at the start of each
  table-recreation migration to prevent 'table scans_new already exists' errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 18:18:22 +01:00
..