paper-dynasty-database/app
Cal Corum 92fc101e38 Fix PostgreSQL compatibility for GROUP BY queries and aggregations
- Fix NULL handling for FK checks in stratplays.py: use x.field_id instead
  of x.field to avoid triggering FK lookups on potentially missing rows
- Cast boolean is_start to integer for SUM() - PostgreSQL cannot sum booleans
- Add missing GROUP BY clause to Decision aggregate query
- Add Case import for boolean-to-integer casting
- Update migration script with boolean/datetime column mappings
- Exclude legacy battingstat/pitchingstat tables from migration
- Add comprehensive POSTGRES_MIGRATION_GUIDE.md documentation

Tested: /plays/batting and /plays/pitching endpoints work with group_by=player
2026-01-26 21:59:25 -06:00
..
routers_v2 Fix PostgreSQL compatibility for GROUP BY queries and aggregations 2026-01-26 21:59:25 -06:00
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
card_creation.py Update card_creation.py 2024-02-24 21:36:44 -06:00
db_engine.py Fix PostgreSQL compatibility for GROUP BY queries and aggregations 2026-01-26 21:59:25 -06:00
db_helpers.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
dependencies.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
main.py Clean up root_validators 2024-11-03 01:46:40 -05:00
player_scouting.py Update player_scouting.py 2023-09-24 19:00:21 -05:00