read.markets/alembic
Giorgio Gilestro eb31d09782 alembic: 0023 — users.lang index + widen quotes_daily.symbol
Two related schema fixes from the code review:

- users.lang gets a single-column index. The ai_log_job and
  email_digest_job both SELECT DISTINCT on this column every cycle;
  even at low cardinality an index is the right shape.
- quotes_daily.symbol widened to VARCHAR(128) to match quotes.symbol
  (widened back in 0005). Long Eurostat/ONS symbols would silently
  truncate during rollup otherwise.

Models updated to match (User.lang gains index=True, QuoteDaily.symbol
goes to String(128)).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 19:35:09 +02:00
..
versions alembic: 0023 — users.lang index + widen quotes_daily.symbol 2026-05-27 19:35:09 +02:00
env.py sync: encrypted cloud backup for portfolios + settings UX rework 2026-05-23 16:15:54 +02:00
script.py.mako initial commit — cassandra v0.1 2026-05-15 21:56:10 +01:00