fix: remove legacy SQLite compatibility code (#122) #126
Open
Claude
wants to merge 1 commits from
ai/paper-dynasty-database#122 into main
pull from: ai/paper-dynasty-database#122
merge into: cal:main
cal:main
cal:issue/183-bug-get-refractor-cards-returns-count-null-with-ve
cal:issue/182-bug-get-refractor-cards-returns-count-null-with-ou
cal:chore/pre-commit-autofix
cal:feature/refractor-phase2-integration
cal:issue/143-feat-add-limit-pagination-to-paperdex-endpoint
cal:feat/evolution-refractor-schema-migration
cal:ai/paper-dynasty-database#124
cal:next-release
cal:fix/dockerfile-copy-cmd
cal:ai/paper-dynasty-database#90
cal:ai/paper-dynasty-database#88
cal:ai/paper-dynasty-database#69
cal:ai/paper-dynasty-database#16
cal:ai/paper-dynasty-database#28
cal:ai/paper-dynasty-database-37
cal:ai/paper-dynasty-database-36
cal:ai/paper-dynasty-database#35
cal:ai/paper-dynasty-database-32
cal:postgres-migration
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ec04a111c5 |
fix: remove legacy SQLite compatibility code (#122)
All checks were successful
Build Docker Image / build (pull_request) Successful in 8m32s
Closes #122 Both prod and dev environments use PostgreSQL. Removes all SQLite compatibility code that was never exercised in practice. Changes: - db_engine.py: replace SQLite/PostgreSQL branching with direct PooledPostgresqlDatabase init; remove DATABASE_TYPE, SKIP_TABLE_CREATION, all db.create_tables() calls, and commented-out SQLite scout_db code - db_helpers.py: remove DATABASE_TYPE var and SQLite on_conflict_replace branch from upsert_many(); PostgreSQL ON CONFLICT is now the only path - players.py: update stale comment - tests/conftest.py: remove DATABASE_TYPE env var (no longer needed); keep POSTGRES_PASSWORD dummy for instantiation - CLAUDE.md: update SQLite references to PostgreSQL Note: unit tests in test_evolution_seed.py and test_season_stats_model.py use SqliteDatabase(':memory:') for test isolation — this is legitimate test infrastructure, not production SQLite compatibility code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |