The deploy's `alembic upgrade head` failed at 016->017 with StringDataRightTruncationError: the revision id "017_add_trade_setup_strategy_rank" is 33 chars, but Postgres's alembic_version.version_num is VARCHAR(32). Offline/SQLite checks don't enforce the length, so this only surfaced against prod Postgres. Rename the revision ids to the repo's short numeric convention (017, 018); descriptive filenames are kept. down_revision links updated to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>