Skip to content

Commit

Permalink
Enable back migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Jun 7, 2023
1 parent 8927243 commit 2711a69
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions pulp_deb/app/migrations/0025_merge_colliding_structure_content.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Generated by Django 3.2.19 on 2023-05-09 12:35, extended manually;

from django.db import migrations
from django.db import migrations, models
from django.core.exceptions import ObjectDoesNotExist

BATCH_SIZE = 1000

# TODO: Add some logging?
# TODO: Reverse migration?


def merge_colliding_structure_content(apps, schema_editor):
Expand Down Expand Up @@ -172,6 +171,28 @@ class Migration(migrations.Migration):
name='releasecomponent',
unique_together={('distribution', 'component')},
),
# Give a default value to fields for the sake of back migrating
migrations.AlterField(
model_name='releasearchitecture',
name='codename',
field=models.TextField(default=''),
),
migrations.AlterField(
model_name='releasearchitecture',
name='suite',
field=models.TextField(default=''),
),
migrations.AlterField(
model_name='releasecomponent',
name='codename',
field=models.TextField(default=''),
),
migrations.AlterField(
model_name='releasecomponent',
name='suite',
field=models.TextField(default=''),
),
# Before dropping the fields for good!
migrations.RemoveField(
model_name='releasearchitecture',
name='codename',
Expand Down

0 comments on commit 2711a69

Please sign in to comment.