claude-memory/graph/fixes/postgresql-migration-datetimefield-defaults-must-be-datetime-03a346.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

639 B

id type title tags importance confidence created updated
03a346c2-6540-4648-b8c7-b6a312f7d54e fix PostgreSQL migration: DateTimeField defaults must be datetime objects
paper-dynasty
postgresql
migration
fix
peewee
0.8 0.8 2026-01-31T21:56:25.802935+00:00 2026-01-31T21:56:25.802935+00:00

Paperdex and GauntletRun models had DateTimeField(default=int(datetime.timestamp(...)*1000)) which worked in SQLite but fails in PostgreSQL with 'column is of type timestamp without time zone but expression is of type bigint'. Fix: Use DateTimeField(default=datetime.now) instead. Files: app/db_engine.py and db_engine.py