
jpmschweitzerandClaude Opus 4.8
4319e40a63
chore(db): backfill founding_age_years for inhabited bodies (#1000)
Add idempotent MIGRATION_SQL UPDATE to import_economics.py deriving
bodies.founding_age_years via COALESCE(colonial_charter event age,
settlement_wave fallback) per the D-216 amendment.
- Events-first: colonial_charter age_years (authored; 11 bodies).
- Wave fallback: wave_1=600/wave_2=500/wave_3=300/wave_4=100/wave_5=40
(258 bodies).
- Exclude settlement_wave in (origin, unsettled) -> stays NULL: 4 Sol
bodies remain NULL (out of player scope, D-236).
Source-canonical via regen-db; 269/273 inhabited bodies now populated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>