Paper Dynasty Database - PostgreSQL database service
Go to file
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
app Add PostgreSQL compatibility fixes for query ordering 2026-02-03 10:39:14 -06:00
docs Address documentation gaps from review 2026-01-27 15:27:18 -06:00
migrations Normalize Player.franchise to city-agnostic values 2026-01-07 12:00:45 -06:00
scripts Add production deployment config and fix stringified list parsing 2026-01-30 14:03:07 -06:00
storage/templates Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00
.dockerignore Add .dockerignore 2026-01-30 22:47:07 -06:00
.env 2005 Live Series Updates 2025-11-08 18:25:08 -06:00
.env.example CLAUDE: Add .env.example with comprehensive configuration guide 2025-11-07 11:53:23 -06:00
.gitignore Add PostgreSQL compatibility fixes for query ordering 2026-02-03 10:39:14 -06:00
compose.production.yml Add production deployment config and fix stringified list parsing 2026-01-30 14:03:07 -06:00
db_engine.py Add default ORDER BY id to BaseModel.select() for PostgreSQL compatibility 2026-01-31 16:06:44 -06:00
db_migrations.py CLAUDE: Add PostgreSQL support and table names to models 2025-11-07 10:23:14 -06:00
DOCKER_QUICKSTART.md CLAUDE: Add docker-compose.yml and quickstart guide 2025-11-07 13:07:23 -06:00
docker-compose.yml CLAUDE: Comment out API service - prevents race condition in db_engine.py 2025-11-07 14:07:13 -06:00
Dockerfile 2005 Live Series Updates 2025-11-08 18:25:08 -06:00
LICENSE Initial commit 2023-02-19 21:38:07 -06:00
main.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
MIGRATION_PROGRESS.md CLAUDE: Add migration progress tracking document 2025-11-07 10:54:42 -06:00
POSTGRES_MIGRATION_PLAN.md CLAUDE: Add PostgreSQL support and table names to models 2025-11-07 10:23:14 -06:00
PROJECT_PLAN.json Fix PostgreSQL timestamp conversion for stats GET filters 2026-01-30 22:41:00 -06:00
QUICK_START.md CLAUDE: Add QUICK_START.md with step-by-step testing guide 2025-11-07 14:07:17 -06:00
requirements.txt Merge branch 'main' into postgres-migration 2026-01-25 22:53:35 -06:00
sheets.py Create sheets.py 2023-02-21 15:58:01 -06:00
VERSION Bump version to 1.5.4 2026-01-31 16:07:06 -06:00