- 313 new markdown files created - 30 relationships embedded - 313 entries indexed - State initialized with usage data
983 B
983 B
| id | type | title | tags | importance | confidence | created | updated | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4f3d2923-25af-4548-85ae-df7285fa129d | solution | PostgreSQL migration workflow for Major Domo |
|
0.7 | 0.8 | 2025-12-09T22:44:52.229579+00:00 | 2025-12-09T22:44:52.229579+00:00 |
Manual migration workflow for Major Domo database:
- Create SQL file in migrations/ with timestamp: YYYY-MM-DD_description.sql
- Update Peewee model in app/db_engine.py to match
- Apply via SSH to dev server (10.10.0.42): ssh 10.10.0.42 "docker exec -i sba_postgres psql -U sba_admin -d sba_master -c 'SQL HERE'"
- Production is on Akamai Linode (ssh akamai, cd container-data/sba-database)
Key gotchas:
- Table names are SINGULAR (team, player, etc.) not plural
- Container name is sba_postgres (underscore, not hyphen)
- No psql on local machine - must SSH and use docker exec
- Use IF NOT EXISTS for idempotent migrations
- Peewee FloatField maps to PostgreSQL REAL type