peregrine/migrations
pyr0ball a302049f72 fix: add date_posted migration + cloud startup sweep
date_posted column was added to db.py CREATE TABLE but had no migration
file, so existing user DBs were missing it. The list_jobs endpoint queries
this column, causing 500 errors and empty Apply/Review queues for all
existing cloud users while job_counts (which doesn't touch date_posted)
continued to work — making the home page show correct counts but tabs show
empty data.

Fixes:
- migrations/006_date_posted.sql: ALTER TABLE to add date_posted to existing DBs
- dev_api.py lifespan: on startup in cloud mode, sweep all user DBs in
  CLOUD_DATA_ROOT and apply pending migrations — ensures schema changes land
  for every user on each deploy, not only on their first post-deploy request
2026-04-15 12:17:55 -07:00
..
001_baseline.sql feat(#43): numbered SQL migration runner (Rails-style) 2026-04-04 22:17:42 -07:00
002_ats_resume_columns.sql feat: Interview prep Q&A, cf-orch hardware profile, a11y fixes, dark theme 2026-04-14 17:01:18 -07:00
003_resume_review.sql feat: Interview prep Q&A, cf-orch hardware profile, a11y fixes, dark theme 2026-04-14 17:01:18 -07:00
004_resume_final_struct.sql feat: Interview prep Q&A, cf-orch hardware profile, a11y fixes, dark theme 2026-04-14 17:01:18 -07:00
005_resumes_table.sql feat: add resumes table and jobs.resume_id column (migration 005) 2026-04-12 10:36:57 -07:00
006_date_posted.sql fix: add date_posted migration + cloud startup sweep 2026-04-15 12:17:55 -07:00