Remove legacy SQLite compatibility code #122
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#122
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Both prod and dev databases are now PostgreSQL. The codebase still contains legacy SQLite compatibility code from the migration that should be cleaned out.
Known areas to check
DATABASE_TYPEenv var and any conditional branching between sqlite/postgresqlstorage/pd_master.dbreferencessqlite3imports or SQLite-specific connection handlingAcceptance Criteria
sqlite3imports remainDATABASE_TYPEenv var removed or simplified if it was only for sqlite/pg switchingPR #126 opened: #126
Removed all SQLite compatibility code across 5 files (-335 / +48 lines):
DATABASE_TYPE,SKIP_TABLE_CREATION, SQLiteelsebranch, 13db.create_tables()guards, commented-outscout_dbcode all removed.PooledPostgresqlDatabasenow initialized unconditionally.DATABASE_TYPEvar and SQLiteon_conflict_replace()branch removed. PostgreSQLON CONFLICT DO UPDATEis the only upsert path.DATABASE_TYPE=postgresqlenv var removed (no longer needed).Unit tests using
SqliteDatabase(':memory:')for test isolation were left in place — those are test infrastructure, not production compatibility code.