Actions
Issue #6665
closedmakemigrations generates a new migration for sum_type in advisories
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),
),
]
Actions
Make model definition match the db state
closes #6665 https://pulp.plan.io/issues/6665