Commit Graph

6 Commits

Author SHA1 Message Date
LemonNexus b06b98e6cc fix: change TIMESTAMP columns to TEXT to avoid SQLite auto-conversion errors
SQLite's TIMESTAMP type causes auto-conversion issues when data is in ISO format
- Changed all TIMESTAMP columns to TEXT in schema.sql
- Disabled detect_types in database.py to prevent auto-conversion
- This stores datetime as ISO strings without parsing issues
2026-02-11 13:13:55 +00:00
LemonNexus e86dd7c358 fix: add status column to sessions table via migration 2026-02-11 10:49:39 +00:00
LemonNexus 8a38d39648 fix: add missing List import from typing module 2026-02-11 10:46:54 +00:00
LemonNexus 00d7445c26 fix: add fetchall() and fetchone() helper methods to DatabaseManager
- Code was calling db.fetchall() and db.fetchone() but these methods didn't exist
- Add helper methods that execute query and return results
- Fixes template loading and other database operations
2026-02-11 10:45:42 +00:00
LemonNexus e9378f2176 fix: add description column to projects table with migration
- Add description column to projects table in schema.sql
- Add _run_migrations() method to handle schema updates
- Migration automatically adds description column to existing databases
2026-02-11 10:35:36 +00:00
LemonNexus b47ddbec2e feat(db): initialize SQLite schema and DatabaseManager
- Create schema.sql with Data Principle support (projects, sessions, loot)
- Implement DatabaseManager with connection pooling and WAL mode
- Add Decimal adapter for PED/PEC precision (Rule #4)
- Enable foreign keys and performance optimizations (Rule #3)
- Add backup functionality for data safety

Database supports project archiving, session tracking, and
historical data comparison per Data Principle.
2026-02-08 16:56:32 +00:00