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. |
||
|---|---|---|
| .. | ||
| routers_v2 | ||
| __init__.py | ||
| card_creation.py | ||
| db_engine.py | ||
| db_helpers.py | ||
| dependencies.py | ||
| main.py | ||
| player_scouting.py | ||