Project

Profile

Help

Issue #6665

closed

makemigrations generates a new migration for sum_type in advisories

Added by ttereshc almost 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

There are no changes in the code for the model since 3.3.0 and the migration for the field exists. For some reason, django generates a new migration. Probably there is a difference between model definition and the existing migration.

class Migration(migrations.Migration):

    dependencies = [
        ('rpm', '0009_auto_20200506_1338'),
    ]

    operations = [
        migrations.AlterField(
            model_name='updatecollectionpackage',
            name='sum_type',
            field=models.PositiveIntegerField(choices=[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7)], null=True),
        ),
    ]

Also available in: Atom PDF