paper-dynasty-database/app
Cal Corum 40c512c665 Add PostgreSQL compatibility fixes for query ordering
- Add explicit ORDER BY id to all queries for consistent results across SQLite and PostgreSQL
- PostgreSQL does not guarantee row order without ORDER BY, unlike SQLite
- Skip table creation when DATABASE_TYPE=postgresql (production tables already exist)
- Fix datetime handling in notifications (PostgreSQL native datetime vs SQLite timestamp)
- Fix grouped query count() calls that don't work in PostgreSQL
- Update .gitignore to include storage/templates/ directory

This completes the PostgreSQL migration compatibility layer while maintaining
backwards compatibility with SQLite for local development.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-03 10:39:14 -06:00
..
routers_v2 Add PostgreSQL compatibility fixes for query ordering 2026-02-03 10:39:14 -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 Add PostgreSQL compatibility fixes for query ordering 2026-02-03 10:39:14 -06:00
db_helpers.py Fix PostgreSQL upsert column names and CSV null handling 2026-01-30 17:28:40 -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