Major Domo Database - PostgreSQL database service for SBA bot
Go to file
Cal Corum f49adf3c64 CLAUDE: Phase 2 PostgreSQL migration BREAKTHROUGH complete
🚀 MASSIVE SUCCESS: 77% of tables now migrating successfully!

Major Achievements:
- 23/30 tables successfully migrating (up from 7/30)
- ~373,000 records migrated (up from ~5,432)
- ALL schema compatibility issues resolved
- ALL NULL constraint issues resolved

Issues resolved in Phase 2:
- CONSTRAINT-CURRENT-BSTATCOUNT-001: Made nullable
- CONSTRAINT-CURRENT-PSTATCOUNT-001: Made nullable
- CONSTRAINT-TEAM-AUTO_DRAFT-001: Made nullable
- CONSTRAINT-CURRENT-BET_WEEK-001: Made nullable (bonus discovery)
- CONSTRAINT-TEAM-GMID-001: Made nullable (bonus discovery)

Major tables now working:
 current (11 records)
 team (546 records)
 player (12,232 records)
 battingstat (105,413 records)
 pitchingstat (35,281 records)
 stratgame (2,468 records)
 stratplay (192,790 records)

Remaining issues (7 tables): Foreign key dependencies and missing tables

Next: Phase 3 - Foreign key resolution for final 23% of tables

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 18:31:18 -05:00
app CLAUDE: Phase 2 PostgreSQL migration BREAKTHROUGH complete 2025-08-18 18:31:18 -05:00
test-storage CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
.dockerignore Adding Git and Docker files 2023-02-21 11:53:02 -06:00
.gitignore CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
=2.9.0 CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
CUSTOM_COMMANDS_MIGRATION.md CLAUDE: Add custom commands system with migration from legacy database 2025-08-17 16:31:39 -05:00
DATA_SANITIZATION_TEMPLATE.md CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
db_engine.py Initial commit 2023-02-19 21:43:17 -06:00
docker-compose.yml CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
Dockerfile Fix relative package issues 2023-05-05 11:06:11 -05:00
LICENSE Initial commit 2023-02-19 21:42:32 -06:00
main.py Merge pull request #2 from calcorum/api-rebuild 2023-07-24 23:06:53 -05:00
migrate_custom_commands.py CLAUDE: Add custom commands system with migration from legacy database 2025-08-17 16:31:39 -05:00
migrate_to_postgres.py CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
migration_issues_tracker.md CLAUDE: Phase 2 PostgreSQL migration BREAKTHROUGH complete 2025-08-18 18:31:18 -05:00
MIGRATION_METHODOLOGY.md CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
MIGRATION_QUICK_REFERENCE.md CLAUDE: Add custom commands system with migration from legacy database 2025-08-17 16:31:39 -05:00
migrations.py Season 9 Additions 2024-01-14 22:44:23 -06:00
pd_master.db Logging updates 2024-12-16 09:03:23 -06:00
PRODUCTION_MIGRATION_CHECKLIST.md CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
requirements.txt CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
reset_postgres.py CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
test_migration_workflow.sh CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
test_postgres.py CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00
validate_migration.py CLAUDE: Phase 1 PostgreSQL migration fixes complete 2025-08-18 18:09:45 -05:00