mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 19:52:59 +00:00
🔧 Fix migration conflict - prevent duplicate column errors
- Convert migration 0002 to no-op to prevent 'data_file column already exists' error - Fields already exist in Railway PostgreSQL database - Allows clean deployment without migration conflicts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
661f3fe8d4
commit
8109c6a693
@ -1,4 +1,5 @@
|
||||
# Generated by Django 5.2.4 on 2025-07-10 04:31
|
||||
# Modified to prevent duplicate column errors
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
@ -10,38 +11,6 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
# Add new fields only (don't remove old ones to avoid conflicts)
|
||||
migrations.AddField(
|
||||
model_name='dataanalysisagentrequest',
|
||||
name='data_file',
|
||||
field=models.FileField(blank=True, upload_to='uploads/data_analyzer/'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='dataanalysisagentrequest',
|
||||
name='analysis_type',
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
('summary', 'Summary Analysis'),
|
||||
('detailed', 'Detailed Analysis'),
|
||||
('statistical', 'Statistical Analysis'),
|
||||
],
|
||||
default='summary',
|
||||
max_length=50
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='dataanalysisagentresponse',
|
||||
name='analysis_results',
|
||||
field=models.JSONField(blank=True, default=dict),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='dataanalysisagentresponse',
|
||||
name='insights_summary',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='dataanalysisagentresponse',
|
||||
name='report_text',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
# No operations - fields already exist in database
|
||||
# This prevents "column already exists" errors during deployment
|
||||
]
|
||||
Loading…
Reference in New Issue
Block a user