whereIn('status', [ConfigVersionStatus::Active->value, ConfigVersionStatus::Draft->value])->cursor() as $version) { foreach ($codes as $code) { foreach (OddsStandardScopes::presetOddsForPlay($code) as $scope => $oddsValue) { OddsItem::query() ->where('version_id', $version->id) ->where('play_code', $code) ->where('prize_scope', $scope) ->update(['odds_value' => $oddsValue]); } } } // Existing default cap was calibrated for the prior 25x test multiplier. RiskCapItem::query()->where('cap_type', 'default')->update(['cap_amount' => 5_000_000_000_000]); } }