quantum-ai/agent_base
Claude 58d56c3200 Implement smart database auto-detection for local/Railway compatibility
**Smart Database Configuration:**
- Auto-detects environment: Railway vs Local development
- Tests PostgreSQL connection before using it
- Falls back to SQLite if PostgreSQL unavailable
- Preserves Railway DATABASE_URL when present

**Environment Detection Logic:**
1. Railway: Uses Railway's DATABASE_URL (PostgreSQL)
2. Local with DATABASE_URL: Uses specified database
3. Local with PostgreSQL running: Uses PostgreSQL
4. Local without PostgreSQL: Falls back to SQLite

**New Management Command:**
- `check_db`: Diagnose database configuration and connection
- Shows current engine, connection status, table count
- Provides troubleshooting tips for PostgreSQL setup

**Solves the Compatibility Problem:**
- Local development: Works without PostgreSQL setup (SQLite fallback)
- Railway production: Always uses PostgreSQL (via DATABASE_URL)
- No more "works locally but fails on Railway" issues
- No more "needs PostgreSQL locally to test Railway compatibility"

**Benefits:**
- Seamless development experience
- Production-development parity when PostgreSQL available
- Graceful degradation to SQLite when needed
- Zero configuration required for basic development

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 10:10:42 +05:30
..
management Implement smart database auto-detection for local/Railway compatibility 2025-07-12 10:10:42 +05:30
migrations Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
templates/agent_generator Implement wallet deduction after success & fix display issues 2025-07-10 16:34:03 +05:30
__init__.py Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
apps.py Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
models.py Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30
processors.py Implement individual agent architecture with simplified template structure 2025-07-10 09:01:11 +05:30