# 02a: Alembic Migration Framework **What to build:** Alembic configured and running with additive-by-default migrations, destructive changes behind flags. **Blocked by:** 01a (Linode Infrastructure with Terraform) **Status:** ready-for-agent - [ ] Alembic initialized in FastAPI project (`alembic init`) - [ ] `alembic.ini` configured with environment-specific URLs (staging/production) - [ ] First migration created (empty schema or minimal `users` table) - [ ] Migration applied to staging database - [ ] Migration applied to production database - [ ] Migration rollback tested (`alembic downgrade + upgrade`) - [ ] CI workflow step added to run migrations on deploy