Project

Profile

Help

Issue #6665

closed

makemigrations generates a new migration for sum_type in advisories

Added by ttereshc over 4 years ago. Updated over 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),
        ),
    ]

Actions #1

Updated by pulpbot over 4 years ago

  • Status changed from NEW to POST

Added by ttereshc over 4 years ago

Revision 8530e6e2 | View on GitHub

Make model definition match the db state

closes #6665 https://pulp.plan.io/issues/6665

Actions #2

Updated by ttereshc over 4 years ago

  • Status changed from POST to MODIFIED

Added by ttereshc over 4 years ago

Revision 0c4109b7 | View on GitHub

Make model definition match the db state

closes #6665 https://pulp.plan.io/issues/6665

(cherry picked from commit 8530e6e2c1c4105b2a7c6b74ac5b44dfca1ec43c)

Actions #3

Updated by ttereshc over 4 years ago

Actions #4

Updated by ttereshc over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to Pulp RPM 3.3.1

Also available in: Atom PDF