mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 08:52:58 +00:00
## Migration Fix for Railway Database - Railway PostgreSQL already has access_url_name/display_url_name columns - Previous migration tried to add existing columns → DuplicateColumn error - New migration checks if columns exist before adding them ## Smart Migration Logic ✅ Check information_schema for existing columns ✅ Add columns only if they don't exist ✅ Skip if columns already present (Railway case) ✅ Works for both fresh and existing databases ## Error Fixed ❌ Was: column 'access_url_name' of relation 'agents_agent' already exists ✅ Now: Migration succeeds regardless of existing schema state ## Result - Railway deployment will complete successfully - populate_agents will run and create all 5 agents - Marketplace will show agents again 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| management | ||
| migrations | ||
| templates/agents | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| models.py | ||
| serializers.py | ||
| tests.py | ||
| urls.py | ||
| views.py | ||