Paper Dynasty Database - PostgreSQL database service
Go to file
Cal Corum 985a6ed2b0 Add default ORDER BY id to BaseModel.select() for PostgreSQL compatibility
PostgreSQL does not guarantee row order without ORDER BY, unlike SQLite
which implicitly returned rows by rowid. This caused bugs where queries
returned results in unexpected order (e.g., get_team_by_owner returning
gauntlet team instead of main team).

Override select() in BaseModel to add default ordering by id. Explicit
.order_by() calls will override this default.

Also mark legacy db_engine.py as deprecated.
2026-01-31 16:06:44 -06:00
app Add default ORDER BY id to BaseModel.select() for PostgreSQL compatibility 2026-01-31 16:06:44 -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
.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 local utility files to gitignore 2026-01-30 22:46:56 -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.3 2026-01-31 15:56:51 -06:00